Prefer TryCand when TryVal is less than CandVal.
Synopsis
Declared in <llvm/CodeGen/MachineScheduler.h>
bool
tryLess(
int TryVal,
int CandVal,
GenericSchedulerBase::SchedCandidate& TryCand,
GenericSchedulerBase::SchedCandidate& Cand,
GenericSchedulerBase::CandReason Reason);
Return Value
True if TryCand replaced Cand because TryVal was less.
Parameters
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. |
Created with MrDocs