[llvm] [ctx_prof] Handle `select` and its `step` instrumentation (PR #109185)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 13:27:49 PDT 2024


================
@@ -2211,7 +2211,15 @@ remapIndices(Function &Caller, BasicBlock *StartBB,
     }
     for (auto &I : llvm::make_early_inc_range(*BB)) {
       if (auto *Inc = dyn_cast<InstrProfIncrementInst>(&I)) {
-        if (Inc != BBID) {
+        if (isa<InstrProfIncrementInstStep>(Inc)) {
----------------
mtrofin wrote:

done

https://github.com/llvm/llvm-project/pull/109185


More information about the llvm-commits mailing list