Prefer TryCand when TryVal is less than CandVal.
Declared in <llvm/CodeGen/MachineScheduler.h>
bool
tryLess(
int TryVal,
int CandVal,
GenericSchedulerBase::SchedCandidate& TryCand,
GenericSchedulerBase::SchedCandidate& Cand,
GenericSchedulerBase::CandReason Reason);
True if TryCand replaced Cand because TryVal was less.
| Name | Description |
|---|---|
| TryVal | Metric for the tentative candidate. |
| CandVal | Metric for the current best candidate. |
| TryCand | Tentative candidate being compared. |
| Cand | Current best candidate, updated on success. |
| Reason | Heuristic reason recorded when TryCand wins. |