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

Duncan Sands baldrick at free.fr
Fri Sep 3 01:52:36 PDT 2010


Hi Eli,

> Trunk clang and opt appear to completely refuse to inline the function
> in question because it is recursive.  If you're using an earlier
> version, I think opt might not be using exactly the same inlining
> thresholds as clang...

that brings up the question of why tailcallopt didn't turn it into a loop...

Ciao,

Duncan.



More information about the llvm-dev mailing list