[llvm] [mlir] [IR][PGO] Verify invalid `MD_prof` metadata on instructions (PR #145576)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 15:50:33 PDT 2025
================
@@ -5008,6 +5008,9 @@ void Verifier::visitProfMetadata(Instruction &I, MDNode *MD) {
Check(mdconst::dyn_extract<ConstantInt>(MDO),
"!prof brunch_weights operand is not a const int");
}
+ } else {
+ Check(ProfName == "VP", "expected either branch_weights or VP profile name",
----------------
teresajohnson wrote:
The PR description says that the validation "moved" - did this exist somewhere else already?
https://github.com/llvm/llvm-project/pull/145576
More information about the llvm-commits
mailing list