Right now, LLVM only emits tail calls for calls between fastcc functions
that obey certain other conditions:
http://llvm.org/docs/CodeGenerator.html#tailcallopt. gcc emits tail calls
for certain kinds of functions that obey the C ABI, so it should be
possible for LLVM to eventually do the same. We'd like to emit these for at
least jumping back from jitted code to the interpreter, and probably other
places.
For now, we'll emit the "tail" marker on the call but accept that the code
generator won't optimize it.
Original issue reported on code.google.com by jyass...@gmail.com on 12 Jun 2009 at 9:42
Original issue reported on code.google.com by
jyass...@gmail.com
on 12 Jun 2009 at 9:42