[llvm] LiveIntervals: Use BumpPtrAllocator (PR #127057)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 25 07:11:09 PST 2025


================
@@ -64,6 +65,12 @@ class LiveIntervals {
   MachineDominatorTree *DomTree = nullptr;
   std::unique_ptr<LiveIntervalCalc> LICalc;
 
+  // Allocator for RegUnitRanges and SubRanges.
+  BumpPtrAllocator Allocator;
+
+  // Allocator for VirtRegIntervals
+  SpecificBumpPtrAllocator<LiveInterval> LIAllocator;
----------------
nikic wrote:

Need this for LiveRange as well, as it contains vectors.

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


More information about the llvm-commits mailing list