[LLVMdev] Why clang inlines with -O3 flag and opt doesn't?

Yuri yuri at rawbw.com
Fri Sep 3 01:50:03 PDT 2010


On 09/03/2010 01:17, Duncan Sands wrote:
> perhaps because your hand written .ll has no target information in it.
> I'm not sure why that would effect inlining, but in general it vastly
> reduces the number of optimizations that can be performed

I tried to copy target information from .ll file generated by clang but 
result after opt is the same.

Yuri



More information about the llvm-dev mailing list