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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 08:31:30 PDT 2025


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

As Original is only used to get the function, should we pass that directly?

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


More information about the llvm-commits mailing list