[llvm-branch-commits] [IR] Verify that VP !prof does not have duplicate prof values (PR #193083)
Aiden Grossman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat May 16 19:14:11 PDT 2026
================
@@ -5427,6 +5427,15 @@ void Verifier::visitProfMetadata(Instruction &I, MDNode *MD) {
"VP !prof indirect call or memop size expected to be applied to "
"CallBase instructions only",
MD);
+
+ DenseSet<uint64_t> ProfileValues;
+ for (unsigned I = 3; I < MD->getNumOperands(); I += 2) {
----------------
boomanaiden154 wrote:
There's some conditions where it bails that I think we still want to verify/report a different error. Given that I don't think it makes sense to combine the two, especially if we ever want to change behavior in `getValueProfDataFromInst`.
https://github.com/llvm/llvm-project/pull/193083
More information about the llvm-branch-commits
mailing list