LLVM Inlining pass


I’m working on evaluating the impact of the LLVM inlining passes on the performance of the SPEC2006 benchmarks. I’m not sure weather link time optimizations is enabled in LLVM using the dragonegg front-end.

My questions are:

  1. How many inlining passes does LLVM actually perform at -O3 with and without LTO?
  2. How to enable LTO and IPO using Dragonegg?