diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-03 19:32:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-03 19:32:26 +0000 |
commit | 0dba0e5408e999e9c46006a12a92155a961a574c (patch) | |
tree | 9f1f2ce545342502517c46dedab96e525eb8da71 /lib/CodeGen/PostRASchedulerList.cpp | |
parent | ebb0a31103f353e330ea998f1a9e283a387b6ef7 (diff) |
When looking for anti-dependences on the critical path, don't bother
examining non-anti-dependence edges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r-- | lib/CodeGen/PostRASchedulerList.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp index bd9783281c..73caea96b2 100644 --- a/lib/CodeGen/PostRASchedulerList.cpp +++ b/lib/CodeGen/PostRASchedulerList.cpp @@ -195,6 +195,10 @@ bool SchedulePostRATDList::BreakAntiDependencies() { 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; |