[llvm] [IR][PGO] Verify the structure of `VP` metadata. (PR #145584)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 08:56:18 PDT 2025
================
@@ -5026,9 +5027,25 @@ void Verifier::visitProfMetadata(Instruction &I, MDNode *MD) {
Check(mdconst::dyn_extract<ConstantInt>(MDO),
"!prof brunch_weights operand is not a const int");
}
+ } else if (ProfName == MDProfLabels::ValueProfile) {
+ Check(isValueProfileMD(MD),"invalid value profiling metadata",MD);
----------------
teresajohnson wrote:
nit: missing spaces between parameters - run clang format?
https://github.com/llvm/llvm-project/pull/145584
More information about the llvm-commits
mailing list