[LLVMdev] Removing -tailcallopt?

Evan Cheng evan.cheng at apple.com
Fri Feb 5 15:35:15 PST 2010

Hi all,

I've added tail call optimization to x86. This is different from what -tailcallopt does, which forces fastcc function to be tail callable. My changes detect opportunities to do tail call without having to change the ABI.

I've looked at the codegen of -tailcallopt and it doesn't look all that good. Running it as a llcbeta option shows it significantly pessimize code in most cases.

As far as I can tell only PPC and  X86 targets are supporting this option. Does anyone actually using it?  I'd prefer to just remove it to clean up the implementation if no one has any objections.


More information about the llvm-dev mailing list