http://llvm.org/bugs/show_bug.cgi?id=4154

           Summary: -fast and -tailcallopt don't combine
           Product: libraries
           Version: 2.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=2951)
 --> (http://llvm.org/bugs/attachment.cgi?id=2951)
wrong result of "llc -fast -tailcallopt"

"llc -fast -tailcallopt" gives wrong results on the small attached file.

The issue is that there is a "addl 4, %esp" after the "call *%eax", which is
(correctly) not there if compiled with "llc -tailcallopt".

This seems to be tailcallopt not generating the correct calls in "fast" mode. 
It was discovered by playing with the JIT compiler.  (Obviously, the call in
question is not meant to be a tail call; this is part of a more complete set of
functions, and some other calls elsewhere are the ones meant to be tail calls.)


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to