[llvm] [SimplifyCFG][PGO] Reuse existing `setBranchWeights` (PR #160629)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 29 14:53:05 PDT 2025


================
@@ -147,6 +147,12 @@ LLVM_ABI bool extractProfTotalWeight(const Instruction &I,
 LLVM_ABI void setBranchWeights(Instruction &I, ArrayRef<uint32_t> Weights,
                                bool IsExpected);
 
+LLVM_ABI void setBranchWeights(Instruction &I, ArrayRef<uint64_t> Weights,
----------------
mtrofin wrote:

something like that - ptal

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


More information about the llvm-commits mailing list