ΒΆvoid verifyMisExpect(
llvm::Instruction& I,
ArrayRef<uint32_t> RealWeights,
ArrayRef<uint32_t> ExpectedWeights)
void verifyMisExpect(
llvm::Instruction& I,
ArrayRef<uint32_t> RealWeights,
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/lib/Transforms/Utils/MisExpect.cpp:158
Parameters
- llvm::Instruction& I
- The Instruction being checked
- ArrayRef<uint32_t> RealWeights
- A vector of profile weights from the profile data
- ArrayRef<uint32_t> ExpectedWeights
- A vector of the weights attatch by llvm.expect