LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 940 - X86 load folding bug
Summary: X86 load folding bug
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: 1.8
Hardware: All All
: P normal
Assignee: Evan Cheng
URL:
Keywords: compile-fail
: 939 (view as bug list)
Depends on:
Blocks: 939
  Show dependency tree
 
Reported: 2006-10-08 14:15 PDT by Chris Lattner
Modified: 2010-02-22 12:47 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lattner 2006-10-08 14:15:38 PDT
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.

-Chris

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
}
Comment 1 Evan Cheng 2006-10-09 20:47:31 PDT
Fixed in top of tree.
Comment 2 Evan Cheng 2006-10-10 11:38:17 PDT
*** Bug 939 has been marked as a duplicate of this bug. ***