mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 20:15:35 +00:00
When looking for anti-dependences on the critical path, don't bother
examining non-anti-dependence edges. llvm-svn: 60496
This commit is contained in:
parent
1020320a05
commit
4f8709518d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user