[LLVMbugs] [Bug 2165] New: Constant folding should fold "<1 x i64> bitcast (i64 63 to <1 x i64>)"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Mar 19 16:48:34 PDT 2008


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

           Summary: Constant folding should fold "<1 x i64> bitcast (i64 63
                    to <1 x i64>)"
           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: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1550)
 --> (http://llvm.org/bugs/attachment.cgi?id=1550)
Patch

Issue per summary: we should fold "<1 x i64> bitcast (i64 63 to <1 x i64>)" to
"<1 x i64> <i64 63>".  This is more consistent, and helps codegen generate more
efficient code on x86.

Patch attached; I'm not sure if this is the right approach (actually, I'm
pretty sure it's wrong in the sense that it doesn't catch all the cases it
should... I'll have to look at it a bit more).


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