[LLVMdev] Tail Call Optimisation

Jon Harrop jon at ffconsultancy.com
Sun Jan 3 20:01:41 PST 2010

On Monday 04 January 2010 01:12:55 Simon Harris wrote:
> I'm investigating "improving" the TCO facilities in LLVM to provide for
> "hard" tail calls. Specifically, this would involve extending the existing
> implementation to discard the stack frame for the caller before executing
> the callee. I would then like to extend this further by performing hard
> tail calls on _all_ returning calls that no longer require the stack frame.
> A colleague of mine and I have looked into it and prima facie believe that
> it's entirely feasible. I wanted to ask the list if there was any interest,
> any objections, and of course, anything pointers/tips that may prove
> useful.

I am certainly interested in tail calls because my HLVM project relies upon 
LLVM's tail call elimination. However, I do not understand what tail calls 
LLVM is not currently eliminating that you plan to eliminate?

Dr Jon Harrop, Flying Frog Consultancy Ltd.

More information about the llvm-dev mailing list