Lines Matching refs:Cand

144                     SISchedulerCandidate &Cand,  in tryLess()  argument
151 if (Cand.Reason > Reason) in tryLess()
152 Cand.Reason = Reason; in tryLess()
155 Cand.setRepeat(Reason); in tryLess()
161 SISchedulerCandidate &Cand, in tryGreater() argument
168 if (Cand.Reason > Reason) in tryGreater()
169 Cand.Reason = Reason; in tryGreater()
172 Cand.setRepeat(Reason); in tryGreater()
185 void SIScheduleBlock::traceCandidate(const SISchedCandidate &Cand) { in traceCandidate() argument
187 dbgs() << " SU(" << Cand.SU->NodeNum << ") " << getReasonStr(Cand.Reason); in traceCandidate()
192 void SIScheduleBlock::tryCandidateTopDown(SISchedCandidate &Cand, in tryCandidateTopDown() argument
195 if (!Cand.isValid()) { in tryCandidateTopDown()
200 if (Cand.SGPRUsage > 60 && in tryCandidateTopDown()
201 tryLess(TryCand.SGPRUsage, Cand.SGPRUsage, TryCand, Cand, RegUsage)) in tryCandidateTopDown()
220 Cand.HasLowLatencyNonWaitedParent, in tryCandidateTopDown()
221 TryCand, Cand, SIScheduleCandReason::Depth)) in tryCandidateTopDown()
224 if (tryGreater(TryCand.IsLowLatency, Cand.IsLowLatency, in tryCandidateTopDown()
225 TryCand, Cand, SIScheduleCandReason::Depth)) in tryCandidateTopDown()
229 tryLess(TryCand.LowLatencyOffset, Cand.LowLatencyOffset, in tryCandidateTopDown()
230 TryCand, Cand, SIScheduleCandReason::Depth)) in tryCandidateTopDown()
233 if (tryLess(TryCand.VGPRUsage, Cand.VGPRUsage, TryCand, Cand, RegUsage)) in tryCandidateTopDown()
237 if (TryCand.SU->NodeNum < Cand.SU->NodeNum) { in tryCandidateTopDown()
1409 bool SIScheduleBlockScheduler::tryCandidateLatency(SIBlockSchedCandidate &Cand, in tryCandidateLatency() argument
1411 if (!Cand.isValid()) { in tryCandidateLatency()
1418 Cand.LastPosHighLatParentScheduled, TryCand, Cand, Latency)) in tryCandidateLatency()
1421 if (tryGreater(TryCand.IsHighLatency, Cand.IsHighLatency, in tryCandidateLatency()
1422 TryCand, Cand, Latency)) in tryCandidateLatency()
1424 if (TryCand.IsHighLatency && tryGreater(TryCand.Height, Cand.Height, in tryCandidateLatency()
1425 TryCand, Cand, Depth)) in tryCandidateLatency()
1428 Cand.NumHighLatencySuccessors, in tryCandidateLatency()
1429 TryCand, Cand, Successor)) in tryCandidateLatency()
1434 bool SIScheduleBlockScheduler::tryCandidateRegUsage(SIBlockSchedCandidate &Cand, in tryCandidateRegUsage() argument
1436 if (!Cand.isValid()) { in tryCandidateRegUsage()
1441 if (tryLess(TryCand.VGPRUsageDiff > 0, Cand.VGPRUsageDiff > 0, in tryCandidateRegUsage()
1442 TryCand, Cand, RegUsage)) in tryCandidateRegUsage()
1445 Cand.NumSuccessors > 0, in tryCandidateRegUsage()
1446 TryCand, Cand, Successor)) in tryCandidateRegUsage()
1448 if (tryGreater(TryCand.Height, Cand.Height, TryCand, Cand, Depth)) in tryCandidateRegUsage()
1450 if (tryLess(TryCand.VGPRUsageDiff, Cand.VGPRUsageDiff, in tryCandidateRegUsage()
1451 TryCand, Cand, RegUsage)) in tryCandidateRegUsage()
1457 SIBlockSchedCandidate Cand; in pickBlock() local
1482 Cand.Block = nullptr; in pickBlock()
1502 if (!tryCandidateRegUsage(Cand, TryCand) && in pickBlock()
1504 tryCandidateLatency(Cand, TryCand); in pickBlock()
1506 if (!tryCandidateLatency(Cand, TryCand)) in pickBlock()
1507 tryCandidateRegUsage(Cand, TryCand); in pickBlock()
1510 Cand.setBest(TryCand); in pickBlock()
1512 DEBUG(dbgs() << "Best Current Choice: " << Cand.Block->getID() << ' ' in pickBlock()
1513 << getReasonStr(Cand.Reason) << '\n'); in pickBlock()
1518 dbgs() << "Picking: " << Cand.Block->getID() << '\n'; in pickBlock()
1520 << (Cand.IsHighLatency ? "yes\n" : "no\n"); in pickBlock()
1522 << Cand.LastPosHighLatParentScheduled << '\n'; in pickBlock()
1523 dbgs() << "VGPRUsageDiff: " << Cand.VGPRUsageDiff << '\n'; in pickBlock()
1527 Block = Cand.Block; in pickBlock()