ΒΆllvm::RegAllocScore calculateRegAllocScore(
    const llvm::MachineFunction& MF,
    const llvm::MachineBlockFrequencyInfo& MBFI)

Description

Calculate a score. When comparing 2 scores for the same function but different policies, the better policy would have a smaller score. The implementation is the overload below (which is also easily unittestable)

Declared at: llvm/lib/CodeGen/RegAllocScore.h:63

Parameters

const llvm::MachineFunction& MF
const llvm::MachineBlockFrequencyInfo& MBFI