[LLVMbugs] [Bug 940] NEW: X86 load folding bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Oct 8 12:16:06 PDT 2006


           Summary: X86 load folding bug
           Product: libraries
           Version: 1.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: evan.cheng at apple.com
        ReportedBy: sabre at nondot.org

This testcase causes the X86 backend to select a legal dag into an illegal input to the scheduler.  It's a 
"load folding + flag" issue.

This breaks QT.


void %_ZN13QFSFileEngine4readEPcx() {
        %tmp201 = load int* null                ; <int> [#uses=1]
        %tmp201 = cast int %tmp201 to long              ; <long> [#uses=1]
        %tmp202 = load long* null               ; <long> [#uses=1]
        %tmp203 = add long %tmp201, %tmp202             ; <long> [#uses=1]
        store long %tmp203, long* null
        ret void

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list