[llvm-branch-commits] [llvm] [SimplfyCFG] Set `MD_prof` for `select` used for certain conditional simplifications (PR #154426)
Mircea Trofin via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Sep 4 10:52:12 PDT 2025
================
@@ -4058,7 +4068,7 @@ static bool performBranchToCommonDestFolding(BranchInst *BI, BranchInst *PBI,
// Halve the weights if any of them cannot fit in an uint32_t
fitWeights(NewWeights);
- SmallVector<uint32_t, 8> MDWeights(NewWeights.begin(), NewWeights.end());
+ append_range(MDWeights, NewWeights);
----------------
mtrofin wrote:
I need `MDWeights` in the newly introduced code.
https://github.com/llvm/llvm-project/pull/154426
More information about the llvm-branch-commits
mailing list