Check backend instrumentation against llvm.expect thresholds.
Synopsis
Declared in <llvm/Transforms/Utils/MisExpect.h>
void
checkBackendInstrumentation(
Instruction const& I,
ArrayRef<uint32_t> RealWeights);
Description
Compares PGO counters to the thresholds used for llvm.expect and warns if the PGO counters are outside of the expected range. It extracts the expected weights from the MD_prof weights attached to the instruction, which are assumed to come from lowered llvm.expect intrinsics. The RealWeights parameter and the extracted expected weights are then passed to verifyMisexpect() for verification.
Parameters
Name |
Description |
I |
The Instruction being checked |
RealWeights |
A vector of profile weights for each target block |
Created with MrDocs