[LLVMdev] Tail-calling

Eli Friedman eli.friedman at gmail.com
Mon Sep 8 19:44:38 PDT 2008


On Mon, Sep 8, 2008 at 5:24 PM, OvermindDL1 <overminddl1 at gmail.com> wrote:
>  In other words, are tail-calls always working now when the function
> call happens at the end, even if the function is being called through
> a function pointer (are tail-calls on function pointers working
> correctly right now, or is this whole project but for naught till
> later)?

Tail calls are disabled by default; to enable them, you have to pass
-tailcallopt to llc.  It looks like there's a bug preventing indirect
tail calls from working... I don't think there's anything
fundamentally preventing them from working, though.

-Eli



More information about the llvm-dev mailing list