[llvm] [InstCombine] Preserve profile data with select instructions and binary operators (PR #158375)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 12 15:15:13 PDT 2025
================
@@ -1372,6 +1374,7 @@ Value *InstCombinerImpl::SimplifySelectsFeedingBinaryOp(BinaryOperator &I,
SimplifyQuery Q = SQ.getWithInstruction(&I);
Value *Cond, *True = nullptr, *False = nullptr;
+ MDNode *ProfileData;
----------------
mtrofin wrote:
Nit: can you please initialize this at declaration (i.e. `MDNode *ProfileData = nullptr;`)
https://github.com/llvm/llvm-project/pull/158375
More information about the llvm-commits
mailing list