[patch] Add more loop simplification passes to LTO

Duncan P. N. Exon Smith dexonsmith at apple.com
Thu Apr 10 13:25:59 PDT 2014


On Apr 9, 2014, at 10:10, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

> Some coworkers were trying LTO and noticed that not as many loops
> where being optimized when a function was inlined in LTO instead of
> during at regular build when the function was made inline.
> 
> In the end, the problem was really simple, we are not running indvars
> or -loop-deletion in lto. This patch then seems fairly analogous to
> r202051.
> 
> I haven't run the test-suite to benchmark this (I don't have in my
> macbook air), but do you guys think this patch is reasonable? If so I
> can benchmark and commit it when I get home (April 20th) if no one
> beats me to it .
> 

Nice find!

I plan to benchmark this over the weekend... if someone gets to it
first, let me know.



More information about the llvm-commits mailing list