Hacker News new | ask | show | jobs
by deterministic 37 days ago
You almost always want your own IR that you can use for high level optimisations and then transform it into the LLVM IR.

LLVM at the IR level has no understanding of the semantics of your language and therefore can't do the kind of optimisations that will really make a big speed difference.

I ended up having two custom IR's for a very high performance compiler I maintain at work. It made a big difference.