Lines Matching defs:SU
62 void GCNMaxOccupancySchedStrategy::initCandidate(SchedCandidate &Cand, SUnit *SU,
68 Cand.SU = SU;
79 TempTracker.getDownwardPressure(SU->getInstr(), Pressure, MaxPressure);
82 // and can be retrieved by DAG->getPressureDif(SU).
83 TempTracker.getUpwardPressure(SU->getInstr(), Pressure, MaxPressure);
153 for (SUnit *SU : Q) {
156 initCandidate(TryCand, SU, Zone.isTop(), RPTracker, SRI,
176 if (SUnit *SU = Bot.pickOnlyChoice()) {
178 return SU;
180 if (SUnit *SU = Top.pickOnlyChoice()) {
182 return SU;
195 if (!BotCand.isValid() || BotCand.SU->isScheduled ||
207 assert(TCand.SU == BotCand.SU &&
215 if (!TopCand.isValid() || TopCand.SU->isScheduled ||
227 assert(TCand.SU == TopCand.SU &&
245 return Cand.SU;
256 SUnit *SU;
259 SU = Top.pickOnlyChoice();
260 if (!SU) {
265 SU = TopCand.SU;
269 SU = Bot.pickOnlyChoice();
270 if (!SU) {
275 SU = BotCand.SU;
279 SU = pickNodeBidirectional(IsTopNode);
281 } while (SU->isScheduled);
283 if (SU->isTopReady())
284 Top.removeReady(SU);
285 if (SU->isBottomReady())
286 Bot.removeReady(SU);
288 LLVM_DEBUG(dbgs() << "Scheduling SU(" << SU->NodeNum << ") "
289 << *SU->getInstr());
290 return SU;