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

           Summary: incorrect optimization (instcombine)
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Created an attachment (id=1621)
 --> (http://llvm.org/bugs/attachment.cgi?id=1621)
.ll to demonstrate mis-optimization

Using LLVM 2.2:

llvm-as -f x.ll
opt -instcombine -f x.bc -o x.opt.bc
lli x.bc
lli x.opt.bc

The first outputs (as expected):
90 (Z)
and the second (optimized) incorrectly outputs:
33 (!)

I was unable to get bugpoint to work, but the attached file has been manually
minimized (73 lines). Happens with "opt -std-compile-opts" also, but "opt
-instcombine" is all that's necessary.

It appears two different pointers into allocated memory are being conflated.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to