[llvm] [ctx_prof] Handle `select` and its `step` instrumentation (PR #109185)
David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 21:14:28 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)) {
----------------
david-xl wrote:
Add a comment for this change?
https://github.com/llvm/llvm-project/pull/109185
More information about the llvm-commits
mailing list