[LLVMbugs] [Bug 3351] New: constant folding should fold this constant expr

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 18 12:29:45 PST 2009


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

           Summary: constant folding should fold this constant expr
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: code-quality
          Severity: normal
          Priority: P2
         Component: Global Analyses
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


483.xalancbmk retains this awesome constant expr until codegen:

        %0 = load i16* getelementptr ([7 x i16]*
@_ZN11xercesc_2_5L17gIdeographicCharsE, i32 0, i32 add (i32 ashr (i32 sub (i32
ptrtoint (i16* getelementptr ([7 x i16]*
@_ZN11xercesc_2_5L17gIdeographicCharsE, i32 0, i32 4) to i32), i32 ptrtoint ([7
x i16]* @_ZN11xercesc_2_5L17gIdeographicCharsE to i32)), i32 1), i32 1)), align
4              ; <i16> [#uses=0]

This should get folded at the sub.


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