miniblog.
← Back to all posts
Feb 13, 2015 at 08:12
LLVM's opt is very effective. I had a bug in my compiler such that it didn't compile all side effects, and opt removed the entire program!
Wilfred Hughes
Related Posts
Dec 16, 2015 at 08:26
TIL the order of LLVM passes *really* matters. Running opt -O3 twice has tripled runtime perf, so the defaults don't suit my BF compiler.
Wilfred Hughes
Shared words: LLVM, opt, compiler Score: 93.6
Oct 18, 2014 at 17:52
Disappointed that I can no longer compile some of my Haskell programs with LLVM:
LLVM 3.5.0 rejects aliases used by LLVM codegen (#9142) · Issues · Glasgow Haskell Compiler / GHC · GitLab
ghc.haskell.org/trac/ghc/ticket/9142
Wilfred Hughes
Shared words: LLVM, compile, program Score: 89.5
Nov 5, 2020 at 02:46
Fun compiler bug exposing an issue with LLVM (alias analysis):
https://github.com/rust-lang/rust/issues/54878
Impressively, they are able to replicate the issue in C with clang, and even find a similar bug in gcc!
Enable noalias annotations · Issue #54878 · rust-lang/rust
This issue tracks the undoing of the -Zmutable-noalias=no default introduced in #54639 on account of a bug in LLVM. cc @nagisa (Deja vu?)
Wilfred Hughes
Shared words: LLVM, bug, compiler Score: 86.6