[LLVMdev] question about tail call elimination pass ..

kumar srikumarks at mac.com
Mon Aug 4 03:35:51 PDT 2008


Thanks Chris. That works.

-Srikumar

On 04 Aug 2008, at 12:12 PM, llvmdev-request at cs.uiuc.edu wrote:

>> Hi,
>>
>> 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.
>
> -Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080804/2b5fbaf0/attachment.html>


More information about the llvm-dev mailing list