[LLVMdev] how to turn off the tail optimization

Duncan Sands baldrick at free.fr
Tue Feb 28 02:40:17 PST 2012

Hi Wei,

> It seems to me that LLVM is merging/in-lining the tail function to its
> caller.
> I am wondering if there is a flag that I can use to turn off this
> optimization?

do you want to turn off all inlining, or only inlining of calls that are tail
calls?  Why do you want to turn it off?

Ciao, Duncan.

More information about the llvm-dev mailing list