Lines Matching refs:TryCand
2470 GenericSchedulerBase::SchedCandidate &TryCand, in tryLess() argument
2474 TryCand.Reason = Reason; in tryLess()
2486 GenericSchedulerBase::SchedCandidate &TryCand, in tryGreater() argument
2490 TryCand.Reason = Reason; in tryGreater()
2501 static bool tryLatency(GenericSchedulerBase::SchedCandidate &TryCand, in tryLatency() argument
2506 if (tryLess(TryCand.SU->getDepth(), Cand.SU->getDepth(), in tryLatency()
2507 TryCand, Cand, GenericSchedulerBase::TopDepthReduce)) in tryLatency()
2510 if (tryGreater(TryCand.SU->getHeight(), Cand.SU->getHeight(), in tryLatency()
2511 TryCand, Cand, GenericSchedulerBase::TopPathReduce)) in tryLatency()
2515 if (tryLess(TryCand.SU->getHeight(), Cand.SU->getHeight(), in tryLatency()
2516 TryCand, Cand, GenericSchedulerBase::BotHeightReduce)) in tryLatency()
2519 if (tryGreater(TryCand.SU->getDepth(), Cand.SU->getDepth(), in tryLatency()
2520 TryCand, Cand, GenericSchedulerBase::BotPathReduce)) in tryLatency()
2679 GenericSchedulerBase::SchedCandidate &TryCand, in tryPressure() argument
2686 if (tryGreater(TryP.getUnitInc() < 0, CandP.getUnitInc() < 0, TryCand, Cand, in tryPressure()
2692 if (Cand.AtTop != TryCand.AtTop) in tryPressure()
2700 return tryLess(TryP.getUnitInc(), CandP.getUnitInc(), TryCand, Cand, in tryPressure()
2713 return tryGreater(TryRank, CandRank, TryCand, Cand, Reason); in tryPressure()
2796 SchedCandidate &TryCand, in tryCandidate() argument
2800 TryCand.Reason = NodeOrder; in tryCandidate()
2804 if (tryGreater(biasPhysRegCopy(TryCand.SU, TryCand.AtTop), in tryCandidate()
2806 TryCand, Cand, PhysRegCopy)) in tryCandidate()
2810 if (DAG->isTrackingPressure() && tryPressure(TryCand.RPDelta.Excess, in tryCandidate()
2812 TryCand, Cand, RegExcess, TRI, in tryCandidate()
2817 if (DAG->isTrackingPressure() && tryPressure(TryCand.RPDelta.CriticalMax, in tryCandidate()
2819 TryCand, Cand, RegCritical, TRI, in tryCandidate()
2835 tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
2839 if (tryLess(Zone->getLatencyStallCycles(TryCand.SU), in tryCandidate()
2840 Zone->getLatencyStallCycles(Cand.SU), TryCand, Cand, Stall)) in tryCandidate()
2853 TryCand.AtTop ? DAG->getNextClusterSucc() : DAG->getNextClusterPred(); in tryCandidate()
2854 if (tryGreater(TryCand.SU == TryCandNextClusterSU, in tryCandidate()
2856 TryCand, Cand, Cluster)) in tryCandidate()
2861 if (tryLess(getWeakLeft(TryCand.SU, TryCand.AtTop), in tryCandidate()
2863 TryCand, Cand, Weak)) in tryCandidate()
2868 if (DAG->isTrackingPressure() && tryPressure(TryCand.RPDelta.CurrentMax, in tryCandidate()
2870 TryCand, Cand, RegMax, TRI, in tryCandidate()
2876 TryCand.initResourceDelta(DAG, SchedModel); in tryCandidate()
2877 if (tryLess(TryCand.ResDelta.CritResources, Cand.ResDelta.CritResources, in tryCandidate()
2878 TryCand, Cand, ResourceReduce)) in tryCandidate()
2880 if (tryGreater(TryCand.ResDelta.DemandedResources, in tryCandidate()
2882 TryCand, Cand, ResourceDemand)) in tryCandidate()
2887 if (!RegionPolicy.DisableLatencyHeuristic && TryCand.Policy.ReduceLatency && in tryCandidate()
2888 !Rem.IsAcyclicLatencyLimited && tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
2894 if (tryGreater(Zone->isNextSU(TryCand.SU), Zone->isNextSU(Cand.SU), in tryCandidate()
2895 TryCand, Cand, NextDefUse)) in tryCandidate()
2899 if ((Zone->isTop() && TryCand.SU->NodeNum < Cand.SU->NodeNum) in tryCandidate()
2900 || (!Zone->isTop() && TryCand.SU->NodeNum > Cand.SU->NodeNum)) { in tryCandidate()
2901 TryCand.Reason = NodeOrder; in tryCandidate()
2921 SchedCandidate TryCand(ZonePolicy); in pickNodeFromQueue() local
2922 initCandidate(TryCand, *I, Zone.isTop(), RPTracker, TempTracker); in pickNodeFromQueue()
2924 SchedBoundary *ZoneArg = Cand.AtTop == TryCand.AtTop ? &Zone : nullptr; in pickNodeFromQueue()
2925 tryCandidate(Cand, TryCand, ZoneArg); in pickNodeFromQueue()
2926 if (TryCand.Reason != NoCand) { in pickNodeFromQueue()
2928 if (TryCand.ResDelta == SchedResourceDelta()) in pickNodeFromQueue()
2929 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
2930 Cand.setBest(TryCand); in pickNodeFromQueue()
3175 SchedCandidate &TryCand) { in tryCandidate() argument
3179 TryCand.Reason = NodeOrder; in tryCandidate()
3184 if (tryLess(Top.getLatencyStallCycles(TryCand.SU), in tryCandidate()
3185 Top.getLatencyStallCycles(Cand.SU), TryCand, Cand, Stall)) in tryCandidate()
3189 if (tryLess(TryCand.ResDelta.CritResources, Cand.ResDelta.CritResources, in tryCandidate()
3190 TryCand, Cand, ResourceReduce)) in tryCandidate()
3192 if (tryGreater(TryCand.ResDelta.DemandedResources, in tryCandidate()
3194 TryCand, Cand, ResourceDemand)) in tryCandidate()
3198 if (Cand.Policy.ReduceLatency && tryLatency(TryCand, Cand, Top)) { in tryCandidate()
3203 if (TryCand.SU->NodeNum < Cand.SU->NodeNum) in tryCandidate()
3204 TryCand.Reason = NodeOrder; in tryCandidate()
3210 SchedCandidate TryCand(Cand.Policy); in pickNodeFromQueue() local
3211 TryCand.SU = *I; in pickNodeFromQueue()
3212 TryCand.AtTop = true; in pickNodeFromQueue()
3213 TryCand.initResourceDelta(DAG, SchedModel); in pickNodeFromQueue()
3214 tryCandidate(Cand, TryCand); in pickNodeFromQueue()
3215 if (TryCand.Reason != NoCand) { in pickNodeFromQueue()
3216 Cand.setBest(TryCand); in pickNodeFromQueue()