[LLVMdev] Tail calls not working with LLVM 2.8

Jon Harrop jon at ffconsultancy.com
Wed Dec 1 15:11:58 PST 2010


Thanks. TCO seems to be broken in HLVM only when using JIT compilation and
at least on x86. I think the only change I've made is to upgrade from add to
fadd etc. for floating point arithmetic. :-(

Cheers,
Jon.

> -----Original Message-----
> From: Albert Graef [mailto:Dr.Graef at t-online.de]
> Sent: 01 December 2010 23:09
> To: Jon Harrop
> Cc: 'LLVM List'
> Subject: Re: [LLVMdev] Tail calls not working with LLVM 2.8
> 
> Jon Harrop wrote:
> > I just upgraded HLVM from LLVM 2.7 to 2.8 and started seeing stack
> overflows
> > so I think TCO isn't working. Have there been any obvious changes
> that would
> > cause this?
> 
> FWIW, Pure uses TCO as well and that works fine with LLVM 2.8, both
> with
> the JIT and with statically compiled code, at least on x86_64.
> 
> --
> 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