[Mlir-commits] [mlir] [mlir][ArmSME] Support filling liveness 'holes' in the tile allocator (PR #98350)
Benjamin Maxwell
llvmlistbot at llvm.org
Mon Jul 15 03:59:45 PDT 2024
================
@@ -488,76 +501,126 @@ coalesceTileLiveRanges(DenseMap<Value, LiveRange> &initialLiveRanges) {
return std::move(coalescedLiveRanges);
}
-/// Choose a live range to spill (via some heuristics). This picks either an
-/// active live range from `activeRanges` or the new live range `newRange`.
+/// Choose a live range to spill (via some heuristics). This picks either a live
+/// range from `activeRanges`, `inactiveRanges`, or the new live range
+/// `newRange`. Note: All live ranges in `activeRanges` and `inactiveRanges` are
----------------
MacDue wrote:
I've added a comment explaining the active/inactive sets; 'holes' are the sections of a live range where it is inactive.
We don't _directly_ track the holes (as in find all those spans), we just track what is active/inactive at the current point, which achieves the goal of filling the holes in the live ranges.
https://github.com/llvm/llvm-project/pull/98350
More information about the Mlir-commits
mailing list