array instead, since this is what the scheduler actually cares about.
And remove a check that is unnecessary, since it can assume that
SUnits isn't empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62362
91177308-0d34-0410-b5e6-
96231b3b80d8
bool SchedulePostRATDList::BreakAntiDependencies() {
// The code below assumes that there is at least one instruction,
// so just duck out immediately if the block is empty.
- if (BB->empty()) return false;
+ if (SUnits.empty()) return false;
// Find the node at the bottom of the critical path.
SUnit *Max = 0;
}
DOUT << "Critical path has total latency "
- << (Max ? Max->getDepth() + Max->Latency : 0) << "\n";
+ << (Max->getDepth() + Max->Latency) << "\n";
// Track progress along the critical path through the SUnit graph as we walk
// the instructions.