[llvm-bugs] [Bug 24697] call incorrectly marked as 'tail'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 3 11:19:06 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24697

willvarfar at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from willvarfar at gmail.com ---
nlewycky and d0k have explained:

"The tail flag in LLVM is a bit strange. It just means that the call to puts is
a candidate for tail call optimization, in particular it is not allowed to
access any variable on the stack of the caller. The code generator still has to
make sure that the call is in a position suitable for tail call optimization
before it actually turns the call into a jump, and that's not the case here."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150903/dab7e11d/attachment.html>


More information about the llvm-bugs mailing list