[llvm-commits] [llvm] r64214 - in /llvm/branches/Apple/Dib: lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp test/CodeGen/ARM/memcpy-inline.ll test/CodeGen/X86/fold-pcmpeqd-0.ll

Bill Wendling isanbard at gmail.com
Tue Feb 10 03:10:33 PST 2009


Author: void
Date: Tue Feb 10 05:10:12 2009
New Revision: 64214

URL: http://llvm.org/viewvc/llvm-project?rev=64214&view=rev
Log:
Pull r64210 into Dib:

Fix PR3457: Ignore control successors when looking for closest scheduled
successor. A control successor doesn't read result(s) produced by the scheduling
unit being evaluated.

Modified:
    llvm/branches/Apple/Dib/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
    llvm/branches/Apple/Dib/test/CodeGen/ARM/memcpy-inline.ll
    llvm/branches/Apple/Dib/test/CodeGen/X86/fold-pcmpeqd-0.ll

Modified: llvm/branches/Apple/Dib/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp?rev=64214&r1=64213&r2=64214&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/branches/Apple/Dib/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Tue Feb 10 05:10:12 2009
@@ -30,7 +30,6 @@
 #include "llvm/ADT/Statistic.h"
 #include "llvm/ADT/STLExtras.h"
 #include <climits>
-#include "llvm/Support/CommandLine.h"
 using namespace llvm;
 
 STATISTIC(NumBacktracks, "Number of times scheduler backtracked");
@@ -1047,6 +1046,7 @@
   unsigned MaxHeight = 0;
   for (SUnit::const_succ_iterator I = SU->Succs.begin(), E = SU->Succs.end();
        I != E; ++I) {
+    if (I->isCtrl()) continue;  // ignore chain succs
     unsigned Height = I->getSUnit()->getHeight();
     // If there are bunch of CopyToRegs stacked up, they should be considered
     // to be at the same position.

Modified: llvm/branches/Apple/Dib/test/CodeGen/ARM/memcpy-inline.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/CodeGen/ARM/memcpy-inline.ll?rev=64214&r1=64213&r2=64214&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/test/CodeGen/ARM/memcpy-inline.ll (original)
+++ llvm/branches/Apple/Dib/test/CodeGen/ARM/memcpy-inline.ll Tue Feb 10 05:10:12 2009
@@ -1,6 +1,9 @@
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldmia
 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb
 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrh
+; This used to look for ldmia. But it's no longer lucky enough to
+; have the load / store instructions lined up just right after
+; scheduler change for pr3457. We'll look for a robust solution
+; later.
 
 	%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
 @src = external global %struct.x

Modified: llvm/branches/Apple/Dib/test/CodeGen/X86/fold-pcmpeqd-0.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/CodeGen/X86/fold-pcmpeqd-0.ll?rev=64214&r1=64213&r2=64214&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/test/CodeGen/X86/fold-pcmpeqd-0.ll (original)
+++ llvm/branches/Apple/Dib/test/CodeGen/X86/fold-pcmpeqd-0.ll Tue Feb 10 05:10:12 2009
@@ -1,8 +1,10 @@
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin   | grep pcmpeqd | count 1
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin   | not grep pcmpeqd
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin   | grep orps | grep CPI1_2  | count 2
 ; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | grep pcmpeqd | count 1
 
 ; This testcase shouldn't need to spill the -1 value,
 ; so it should just use pcmpeqd to materialize an all-ones vector.
+; For i386, cp load of -1 are folded.
 
 	%struct.__ImageExecInfo = type <{ <4 x i32>, <4 x float>, <2 x i64>, i8*, i8*, i8*, i32, i32, i32, i32, i32 }>
 	%struct._cl_image_format_t = type <{ i32, i32, i32 }>





More information about the llvm-commits mailing list