[LLVMbugs] [Bug 5287] New: Instruction combine wrong fold of load from global constant

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 23 07:53:50 PDT 2009


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

           Summary: Instruction combine wrong fold of load from global
                    constant
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3694)
 --> (http://llvm.org/bugs/attachment.cgi?id=3694)
testcase .ll

The correct output is 1, 5, 1, but after "opt -instcombine" we get:
  %0 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds (%"char[]"*
@.str, i64 0, i64 0), i32 8, i32 0, i32 0) nounwind ; <i32> [#uses=0]

This is a recent regression, and is presumably due to the recent improvements
in folding loads from constants.


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