mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
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
This commit is contained in:
@ -195,6 +195,10 @@ bool SchedulePostRATDList::BreakAntiDependencies() {
|
|||||||
SDep *Edge = CriticalPath[SU->NodeNum];
|
SDep *Edge = CriticalPath[SU->NodeNum];
|
||||||
SUnit *NextSU = Edge->Dep;
|
SUnit *NextSU = Edge->Dep;
|
||||||
unsigned AntiDepReg = Edge->Reg;
|
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.
|
// Don't break anti-dependencies on non-allocatable registers.
|
||||||
if (!AllocatableSet.test(AntiDepReg))
|
if (!AllocatableSet.test(AntiDepReg))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user