Lines Matching refs:Cand

141                     SISchedulerCandidate &Cand,  in tryLess()  argument
148 if (Cand.Reason > Reason) in tryLess()
149 Cand.Reason = Reason; in tryLess()
152 Cand.setRepeat(Reason); in tryLess()
158 SISchedulerCandidate &Cand, in tryGreater() argument
165 if (Cand.Reason > Reason) in tryGreater()
166 Cand.Reason = Reason; in tryGreater()
169 Cand.setRepeat(Reason); in tryGreater()
182 void SIScheduleBlock::traceCandidate(const SISchedCandidate &Cand) { in traceCandidate() argument
184 dbgs() << " SU(" << Cand.SU->NodeNum << ") " << getReasonStr(Cand.Reason); in traceCandidate()
189 void SIScheduleBlock::tryCandidateTopDown(SISchedCandidate &Cand, in tryCandidateTopDown() argument
192 if (!Cand.isValid()) { in tryCandidateTopDown()
197 if (Cand.SGPRUsage > 60 && in tryCandidateTopDown()
198 SISched::tryLess(TryCand.SGPRUsage, Cand.SGPRUsage, in tryCandidateTopDown()
199 TryCand, Cand, RegUsage)) in tryCandidateTopDown()
218 Cand.HasLowLatencyNonWaitedParent, in tryCandidateTopDown()
219 TryCand, Cand, SIScheduleCandReason::Depth)) in tryCandidateTopDown()
222 if (SISched::tryGreater(TryCand.IsLowLatency, Cand.IsLowLatency, in tryCandidateTopDown()
223 TryCand, Cand, SIScheduleCandReason::Depth)) in tryCandidateTopDown()
227 SISched::tryLess(TryCand.LowLatencyOffset, Cand.LowLatencyOffset, in tryCandidateTopDown()
228 TryCand, Cand, SIScheduleCandReason::Depth)) in tryCandidateTopDown()
231 if (SISched::tryLess(TryCand.VGPRUsage, Cand.VGPRUsage, in tryCandidateTopDown()
232 TryCand, Cand, RegUsage)) in tryCandidateTopDown()
236 if (TryCand.SU->NodeNum < Cand.SU->NodeNum) { in tryCandidateTopDown()
1518 bool SIScheduleBlockScheduler::tryCandidateLatency(SIBlockSchedCandidate &Cand, in tryCandidateLatency() argument
1520 if (!Cand.isValid()) { in tryCandidateLatency()
1527 Cand.LastPosHighLatParentScheduled, TryCand, Cand, Latency)) in tryCandidateLatency()
1530 if (SISched::tryGreater(TryCand.IsHighLatency, Cand.IsHighLatency, in tryCandidateLatency()
1531 TryCand, Cand, Latency)) in tryCandidateLatency()
1533 if (TryCand.IsHighLatency && SISched::tryGreater(TryCand.Height, Cand.Height, in tryCandidateLatency()
1534 TryCand, Cand, Depth)) in tryCandidateLatency()
1537 Cand.NumHighLatencySuccessors, in tryCandidateLatency()
1538 TryCand, Cand, Successor)) in tryCandidateLatency()
1543 bool SIScheduleBlockScheduler::tryCandidateRegUsage(SIBlockSchedCandidate &Cand, in tryCandidateRegUsage() argument
1545 if (!Cand.isValid()) { in tryCandidateRegUsage()
1550 if (SISched::tryLess(TryCand.VGPRUsageDiff > 0, Cand.VGPRUsageDiff > 0, in tryCandidateRegUsage()
1551 TryCand, Cand, RegUsage)) in tryCandidateRegUsage()
1554 Cand.NumSuccessors > 0, in tryCandidateRegUsage()
1555 TryCand, Cand, Successor)) in tryCandidateRegUsage()
1557 if (SISched::tryGreater(TryCand.Height, Cand.Height, TryCand, Cand, Depth)) in tryCandidateRegUsage()
1559 if (SISched::tryLess(TryCand.VGPRUsageDiff, Cand.VGPRUsageDiff, in tryCandidateRegUsage()
1560 TryCand, Cand, RegUsage)) in tryCandidateRegUsage()
1566 SIBlockSchedCandidate Cand; in pickBlock() local
1590 Cand.Block = nullptr; in pickBlock()
1610 if (!tryCandidateRegUsage(Cand, TryCand) && in pickBlock()
1612 tryCandidateLatency(Cand, TryCand); in pickBlock()
1614 if (!tryCandidateLatency(Cand, TryCand)) in pickBlock()
1615 tryCandidateRegUsage(Cand, TryCand); in pickBlock()
1618 Cand.setBest(TryCand); in pickBlock()
1620 LLVM_DEBUG(dbgs() << "Best Current Choice: " << Cand.Block->getID() << ' ' in pickBlock()
1621 << getReasonStr(Cand.Reason) << '\n'); in pickBlock()
1625 LLVM_DEBUG(dbgs() << "Picking: " << Cand.Block->getID() << '\n'; in pickBlock()
1627 << (Cand.IsHighLatency ? "yes\n" : "no\n"); in pickBlock()
1629 << Cand.LastPosHighLatParentScheduled << '\n'; in pickBlock()
1630 dbgs() << "VGPRUsageDiff: " << Cand.VGPRUsageDiff << '\n'; in pickBlock()
1633 Block = Cand.Block; in pickBlock()