[LLVMdev] question about tail call elimination pass ..
srikumarks at mac.com
Mon Aug 4 03:35:51 PDT 2008
Thanks Chris. That works.
On 04 Aug 2008, at 12:12 PM, llvmdev-request at cs.uiuc.edu wrote:
>> createTailCallEliminationPass() is able to turn recursive
>> functions into loops when the functions are written
>> in tail recursive form. However, I'm unable to get it
>> to convert mutually recursive functions to run without
>> a growing stack.
>> doesn't get to run in constant stack space.
>> Is that possible with llvm?
> Sure, just run the function inliner pass first before the tail
> recursion elimination pass.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev