[llvm-commits] [llvm] r60496 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Dan Gohman gohman at apple.com
Wed Dec 3 11:32:28 PST 2008


Author: djg
Date: Wed Dec  3 13:32:26 2008
New Revision: 60496

URL: http://llvm.org/viewvc/llvm-project?rev=60496&view=rev
Log:
When looking for anti-dependences on the critical path, don't bother
examining non-anti-dependence edges.

Modified:
    llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=60496&r1=60495&r2=60496&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Wed Dec  3 13:32:26 2008
@@ -195,6 +195,10 @@
     SDep *Edge = CriticalPath[SU->NodeNum];
     SUnit *NextSU = Edge->Dep;
     unsigned AntiDepReg = Edge->Reg;
+    // Only consider anti-dependence edges.
+    if (!Edge->isAntiDep)
+      continue;
+    assert(AntiDepReg != 0 && "Anti-dependence on reg0?");
     // Don't break anti-dependencies on non-allocatable registers.
     if (!AllocatableSet.test(AntiDepReg))
       continue;





More information about the llvm-commits mailing list