ΒΆvoid verifyMisExpect(
llvm::Instruction& I,
ArrayRef<uint32_t> RealWeights,
const ArrayRef<uint32_t> ExpectedWeights)
void verifyMisExpect(
llvm::Instruction& I,
ArrayRef<uint32_t> RealWeights,
const ArrayRef<uint32_t> ExpectedWeights)
Description
veryifyMisExpect - compares RealWeights to the thresholds used for llvm.expect and warns if the PGO counters are outside of the expected range.
Declared at: llvm/include/llvm/Transforms/Utils/MisExpect.h:61
Parameters
- llvm::Instruction& I
- The Instruction being checked
- ArrayRef<uint32_t> RealWeights
- A vector of profile weights from the profile data
- const ArrayRef<uint32_t> ExpectedWeights
- A vector of the weights attatch by llvm.expect