[lld] [llvm] [llvm][lld] Respect temporal profile weights in balanced partitioning (PR #213837)

Karim Alweheshy via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 15:45:53 PDT 2026


================
@@ -171,10 +173,12 @@ auto BPOrderer<D>::computeOrder(
     sectionToIdx.try_emplace(isec, i);
 
   BPFunctionNode::UtilityNodeT maxUN = 0;
-  MapVector<unsigned, UtilityNodes> startupSectionIdxUNs;
+  MapVector<unsigned, WeightedUtilityNodes> startupSectionIdxUNs;
   // Used to define the initial order for startup functions.
   DenseMap<unsigned, size_t> sectionIdxToTimestamp;
   uint64_t numProfiledFunctionRefs = 0, numResolvedProfiledFunctionRefs = 0;
+  // Weighted verbose counts saturate instead of wrapping on malformed or
+  // artificially large profile weights.
----------------
karim-alweheshy wrote:

Removed in fa2f28cdc1d0.

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


More information about the llvm-commits mailing list