Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix enabling optimizations for LLVM 16
The changes to how passes are run in the new pass manager means simply setting the optimization level isn't enough, instead you have to add the pass group "default<N>" where "N" is "O1", "O2" or "O3". This ensures that for example the module inliner is correctly enabled when using --opt=aggressive. The resulting performance still isn't great as LLVM doesn't inline/optimize across modules, but it's better than --opt=aggressive effectively doing very little.
- Loading branch information