[LLVMdev] Removing -tailcallopt?

Albert Graef Dr.Graef at t-online.de
Fri Feb 5 19:32:20 PST 2010

Evan Cheng wrote:
> 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.

Don't know whether that is the same, but my Pure compiler sets
llvm::PerformTailCallOpt. Pure needs TCO because it doesn't have any
built-in looping constructs. In fact, most functional language
implementations will rely on TCO. If you can make this work reliably on
all supported platforms without needing special flags, that would be
welcome. Otherwise please keep the flag.

(That said, last time I tried LLVM 2.7svn, TCO was broken in the JIT, at
least on x86_64. It works fine up to LLVM 2.6 for me, though.)


Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email:  Dr.Graef at t-online.de, ag at muwiinfa.geschichte.uni-mainz.de
WWW:    http://www.musikinformatik.uni-mainz.de/ag

More information about the llvm-dev mailing list