[LLVMbugs] [Bug 12090] New: Yet another copyprop bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 26 10:03:59 PST 2012


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

             Bug #: 12090
           Summary: Yet another copyprop bug
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8101
  --> http://llvm.org/bugs/attachment.cgi?id=8101
Testcase

Consider the attaching testcase.

Now let's compare the output:
$ llc -float-abi=hard test.ll -mcpu=cortex-a9 -disable-fp-elim
-disable-copyprop=0 -o test-cp.s
$ llc -float-abi=hard test.ll -mcpu=cortex-a9 -disable-fp-elim
-disable-copyprop=1 -o test-ncp.s
diff -u test-ncp.s test-cp.s 
@@ -220,13 +220,10 @@
     vmov.f32    s28, s0
     bl    _Z14GetRandomFloatv
     add    r4, sp, #1360
-    vorr    q1, q7, q7
     add    r5, r4, #48
     add    r6, r4, #32
     str    r5, [sp, #108]          @ 4-byte Spill
     str    r6, [sp, #104]          @ 4-byte Spill
-    vmov.f32    s5, s0
-    vorr    q7, q1, q1
     bl    _Z14GetRandomFloatv
     add    r2, sp, #112
     vorr    q1, q7, q7

Note that vmov.f32 was removed by a mistake. As a result, q1 contain the
different value.

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