[LLVMbugs] [Bug 5975] New: Missed removal of loads after undef stores

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 7 20:36:47 PST 2010


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

           Summary: Missed removal of loads after undef stores
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: arplynn at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Consider the following test-case:

define i8 @foo(i8* %ptr) nounwind {
entry:
        store i8 undef, i8* %ptr
        %val = load i8* %ptr
        ret i8 %val
}

This could be reduced to ret i8 undef, but instead the load remains.


-- 
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