[LLVMbugs] [Bug 2344] New: -pre-RA-sched=list-td generates bad code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon May 19 13:50:26 PDT 2008


           Summary: -pre-RA-sched=list-td generates bad code
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: Bart.Coppens at elis.ugent.be
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1656)
 --> (http://llvm.org/bugs/attachment.cgi?id=1656)
Testcase showing the faulty behaviour

The attached file seems to cause list-td to generate bad code. Compiled with
llc without list-td, it produces a fine result, but with list-td, the result
seems wrong.

Excpected behaviour:
Since toBool is false in '@mystery' upon the call from main, all useless_...
values should be irrelevant to the eventual outcome. Since notToBool is true,
the code at the end should properly write '13' to %tmp, read the same value
from %tmp again and return it after sign-extending it.

Actual behaviour:
Returns '13' when compiled with llc. Returns '-65' (presumably it's just a
random value on the stack) when -pre-RA-sched=list-td is enabled.

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.

More information about the llvm-bugs mailing list