llvm::TargetRegisterInfo::shouldRegionSplitForVirtReg

Decide whether region splitting should run for VirtReg.

Synopsis

Declared in <llvm/CodeGen/TargetRegisterInfo.h>

virtual
bool
shouldRegionSplitForVirtReg(
    MachineFunction const& MF,
    LiveInterval const& VirtReg) const;

Description

Region split has a high compile time cost especially for large live range. This method is used to decide whether or not VirtReg should go through this expensive splitting heuristic.

Return Value

True if region splitting should run for VirtReg.

Parameters

NameDescription
MFFunction that owns VirtReg.
VirtRegLive interval being considered for region splitting.