Lines Matching refs:TryCand
143 SISchedulerCandidate &TryCand, in tryLess() argument
147 TryCand.Reason = Reason; in tryLess()
160 SISchedulerCandidate &TryCand, in tryGreater() argument
164 TryCand.Reason = Reason; in tryGreater()
193 SISchedCandidate &TryCand) { in tryCandidateTopDown() argument
196 TryCand.Reason = NodeOrder; in tryCandidateTopDown()
201 tryLess(TryCand.SGPRUsage, Cand.SGPRUsage, TryCand, Cand, RegUsage)) in tryCandidateTopDown()
219 if (tryLess(TryCand.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()
228 if (TryCand.IsLowLatency && 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()
238 TryCand.Reason = NodeOrder; in tryCandidateTopDown()
246 SISchedCandidate TryCand; in pickNode() local
250 TryCand.SU = SU; in pickNode()
252 TryCand.SGPRUsage = pressure[DAG->getSGPRSetID()]; in pickNode()
253 TryCand.VGPRUsage = pressure[DAG->getVGPRSetID()]; in pickNode()
254 TryCand.IsLowLatency = DAG->IsLowLatencySU[SU->NodeNum]; in pickNode()
255 TryCand.LowLatencyOffset = DAG->LowLatencyOffset[SU->NodeNum]; in pickNode()
256 TryCand.HasLowLatencyNonWaitedParent = in pickNode()
258 tryCandidateTopDown(TopCand, TryCand); in pickNode()
259 if (TryCand.Reason != NoCand) in pickNode()
260 TopCand.setBest(TryCand); in pickNode()
1410 SIBlockSchedCandidate &TryCand) { in tryCandidateLatency() argument
1412 TryCand.Reason = NodeOrder; in tryCandidateLatency()
1417 if (tryLess(TryCand.LastPosHighLatParentScheduled, 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()
1427 if (tryGreater(TryCand.NumHighLatencySuccessors, in tryCandidateLatency()
1429 TryCand, Cand, Successor)) in tryCandidateLatency()
1435 SIBlockSchedCandidate &TryCand) { in tryCandidateRegUsage() argument
1437 TryCand.Reason = NodeOrder; in tryCandidateRegUsage()
1441 if (tryLess(TryCand.VGPRUsageDiff > 0, Cand.VGPRUsageDiff > 0, in tryCandidateRegUsage()
1442 TryCand, Cand, RegUsage)) in tryCandidateRegUsage()
1444 if (tryGreater(TryCand.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()
1485 SIBlockSchedCandidate TryCand; in pickBlock() local
1486 TryCand.Block = *I; in pickBlock()
1487 TryCand.IsHighLatency = TryCand.Block->isHighLatencyBlock(); in pickBlock()
1488 TryCand.VGPRUsageDiff = in pickBlock()
1489 checkRegUsageImpact(TryCand.Block->getInRegs(), in pickBlock()
1490 TryCand.Block->getOutRegs())[DAG->getVGPRSetID()]; in pickBlock()
1491 TryCand.NumSuccessors = TryCand.Block->getSuccs().size(); in pickBlock()
1492 TryCand.NumHighLatencySuccessors = in pickBlock()
1493 TryCand.Block->getNumHighLatencySuccessors(); in pickBlock()
1494 TryCand.LastPosHighLatParentScheduled = in pickBlock()
1496 LastPosHighLatencyParentScheduled[TryCand.Block->getID()] - in pickBlock()
1498 TryCand.Height = TryCand.Block->Height; 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()
1509 if (TryCand.Reason != NoCand) { in pickBlock()
1510 Cand.setBest(TryCand); in pickBlock()