[llvm] [InstCombine] Set !prof metadata on Selects identified by add.ll test (PR #158743)

Alan Zhao via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 13:49:09 PDT 2025


================
@@ -252,6 +252,16 @@ void setExplicitlyUnknownBranchWeights(Instruction &I, StringRef PassName) {
                    MDB.createString(PassName)}));
 }
 
+void setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &New,
+                                                 Instruction &Original,
----------------
alanzhao1 wrote:

Done

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


More information about the llvm-commits mailing list