Lines Matching refs:Cand
24 static bool isADDIInstr(const GenericScheduler::SchedCandidate &Cand) { in isADDIInstr() argument
25 return Cand.SU->getInstr()->getOpcode() == PPC::ADDI || in isADDIInstr()
26 Cand.SU->getInstr()->getOpcode() == PPC::ADDI8; in isADDIInstr()
29 bool PPCPreRASchedStrategy::biasAddiLoadCandidate(SchedCandidate &Cand, in biasAddiLoadCandidate() argument
35 SchedCandidate &FirstCand = Zone.isTop() ? TryCand : Cand; in biasAddiLoadCandidate()
36 SchedCandidate &SecondCand = Zone.isTop() ? Cand : TryCand; in biasAddiLoadCandidate()
49 bool PPCPreRASchedStrategy::tryCandidate(SchedCandidate &Cand, in tryCandidate() argument
55 if (!Cand.isValid()) { in tryCandidate()
62 biasPhysReg(Cand.SU, Cand.AtTop), TryCand, Cand, PhysReg)) in tryCandidate()
67 tryPressure(TryCand.RPDelta.Excess, Cand.RPDelta.Excess, TryCand, Cand, in tryCandidate()
73 tryPressure(TryCand.RPDelta.CriticalMax, Cand.RPDelta.CriticalMax, in tryCandidate()
74 TryCand, Cand, RegCritical, TRI, DAG->MF)) in tryCandidate()
88 tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
93 Zone->getLatencyStallCycles(Cand.SU), TryCand, Cand, Stall)) in tryCandidate()
104 Cand.AtTop ? DAG->getNextClusterSucc() : DAG->getNextClusterPred(); in tryCandidate()
108 Cand.SU == CandNextClusterSU, TryCand, Cand, Cluster)) in tryCandidate()
114 getWeakLeft(Cand.SU, Cand.AtTop), TryCand, Cand, Weak)) in tryCandidate()
120 tryPressure(TryCand.RPDelta.CurrentMax, Cand.RPDelta.CurrentMax, TryCand, in tryCandidate()
121 Cand, RegMax, TRI, DAG->MF)) in tryCandidate()
127 if (tryLess(TryCand.ResDelta.CritResources, Cand.ResDelta.CritResources, in tryCandidate()
128 TryCand, Cand, ResourceReduce)) in tryCandidate()
131 Cand.ResDelta.DemandedResources, TryCand, Cand, in tryCandidate()
138 !Rem.IsAcyclicLatencyLimited && tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
142 if ((Zone->isTop() && TryCand.SU->NodeNum < Cand.SU->NodeNum) || in tryCandidate()
143 (!Zone->isTop() && TryCand.SU->NodeNum > Cand.SU->NodeNum)) { in tryCandidate()
158 if (biasAddiLoadCandidate(Cand, TryCand, *Zone)) in tryCandidate()
165 bool PPCPostRASchedStrategy::biasAddiCandidate(SchedCandidate &Cand, in biasAddiCandidate() argument
170 if (isADDIInstr(TryCand) && !isADDIInstr(Cand)) { in biasAddiCandidate()
177 bool PPCPostRASchedStrategy::tryCandidate(SchedCandidate &Cand, in tryCandidate() argument
182 if (!Cand.isValid()) { in tryCandidate()
189 Top.getLatencyStallCycles(Cand.SU), TryCand, Cand, Stall)) in tryCandidate()
194 Cand.SU == DAG->getNextClusterSucc(), TryCand, Cand, Cluster)) in tryCandidate()
198 if (tryLess(TryCand.ResDelta.CritResources, Cand.ResDelta.CritResources, in tryCandidate()
199 TryCand, Cand, ResourceReduce)) in tryCandidate()
202 Cand.ResDelta.DemandedResources, TryCand, Cand, in tryCandidate()
207 if (Cand.Policy.ReduceLatency && tryLatency(TryCand, Cand, Top)) { in tryCandidate()
212 if (TryCand.SU->NodeNum < Cand.SU->NodeNum) in tryCandidate()
226 if (biasAddiCandidate(Cand, TryCand)) in tryCandidate()