veryifyMisExpect ‐ compares RealWeights to the thresholds used for llvm.expect and warns if the PGO counters are outside of the expected range.
Synopsis
Declared in <llvm/Transforms/Utils/MisExpect.h>
void
verifyMisExpect(
Instruction const& I,
ArrayRef<uint32_t> RealWeights,
ArrayRef<uint32_t> ExpectedWeights);
Parameters
Name |
Description |
I |
The Instruction being checked |
RealWeights |
A vector of profile weights from the profile data |
ExpectedWeights |
A vector of the weights attatch by llvm.expect |
Created with MrDocs