assert(TopQueue.empty() && BotQueue.empty() && "ReadyQ garbage");
return NULL;
}
- // As an initial placeholder heuristic, schedule in the direction that has
- // the fewest choices.
SUnit *SU;
if (ForceTopDown) {
SU = DAG->getSUnit(DAG->top());
unsigned Reg = VirtRegOpers.Uses[i];
const LiveInterval *LI = &LIS->getInterval(Reg);
// FIXME: allow the caller to pass in the list of vreg uses that remain to
- // be top-scheduled to avoid searching uses at each query.
+ // be bottom-scheduled to avoid searching uses at each query.
SlotIndex CurrIdx = LIS->getInstructionIndex(CurrPos).getRegSlot();
if (LI->killedAt(SlotIdx)
&& !findUseBetween(Reg, CurrIdx, SlotIdx, MRI, LIS)) {