[llvm] [NFC][LLVM][CodeGen] Refactor MIR Printer (PR #137361)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 27 12:30:27 PDT 2025
================
@@ -62,6 +63,11 @@ class BranchProbability {
static void normalizeProbabilities(ProbabilityIter Begin,
ProbabilityIter End);
+ template <class ProbabilityRange>
+ static void normalizeProbabilities(ProbabilityRange &R) {
+ normalizeProbabilities(adl_begin(R), adl_end(R));
----------------
jurahul wrote:
Right, I check llvm::sort() which does in place sorting and that does the same as well, so replicated it here as well.
https://github.com/llvm/llvm-project/pull/137361
More information about the llvm-commits
mailing list