Apply register-pressure heuristics between TryP and CandP.
Declared in <llvm/CodeGen/MachineScheduler.h>
bool
tryPressure(
PressureChange const& TryP,
PressureChange const& CandP,
GenericSchedulerBase::SchedCandidate& TryCand,
GenericSchedulerBase::SchedCandidate& Cand,
GenericSchedulerBase::CandReason Reason,
TargetRegisterInfo const* TRI,
MachineFunction const& MF);
True if TryCand replaced Cand due to pressure heuristics.
| Name | Description |
|---|---|
| TryP | Pressure change for the tentative candidate. |
| CandP | Pressure change for the current best candidate. |
| TryCand | Tentative candidate being compared. |
| Cand | Current best candidate, updated on success. |
| Reason | Heuristic reason recorded when TryCand wins. |
| TRI | Target register info for pressure-set names. |
| MF | Machine function providing register class context. |