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

           Summary: gvn non-local CSE miscompilation
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


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

The recent gvn non-local CSE changes broke several tests from the
Ada testsuite.  I reduced one down to the attached (but still large)
testcase.  The visible problem is that gvn thinks that the two memcmp
calls have the same results and eliminates one, but this is bogus
because %var_ara_8 changes between the two calls.

Reproduce using:
  opt -gvn
and observe the transformation of the memcpy calls.


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