llvm::tryPressure

Apply register-pressure heuristics between TryP and CandP.

Synopsis

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);

Return Value

True if TryCand replaced Cand due to pressure heuristics.

Parameters

NameDescription
TryPPressure change for the tentative candidate.
CandPPressure change for the current best candidate.
TryCandTentative candidate being compared.
CandCurrent best candidate, updated on success.
ReasonHeuristic reason recorded when TryCand wins.
TRITarget register info for pressure-set names.
MFMachine function providing register class context.