[all-commits] [llvm/llvm-project] 0dc0d3: LiveIntervals: Use BumpPtrAllocator

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Feb 26 08:57:34 PST 2025


  Branch: refs/heads/users/arsenm/live-intervals-use-bumpptrallocator
  Home:   https://github.com/llvm/llvm-project
  Commit: 0dc0d3f11582542f3eb71d96cdf2f97788e5724c
      https://github.com/llvm/llvm-project/commit/0dc0d3f11582542f3eb71d96cdf2f97788e5724c
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-02-26 (Wed, 26 Feb 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/LiveIntervals.h
    M llvm/lib/CodeGen/LiveIntervals.cpp

  Log Message:
  -----------
  LiveIntervals: Use BumpPtrAllocator


  Commit: 81d263d55831cc4c2363a5b2cd8c5272f01c302b
      https://github.com/llvm/llvm-project/commit/81d263d55831cc4c2363a5b2cd8c5272f01c302b
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-02-26 (Wed, 26 Feb 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/LiveIntervals.h
    M llvm/lib/CodeGen/LiveIntervals.cpp

  Log Message:
  -----------
  Use SpecificBumpPtrAllocator for LiveInterval

I didn't realize we used a singly linked list for storing subranges,
but that seems bad.

I didn't realize we used a singly linked list for storing subranges.
That seems bad and we should probably switch this to an array


  Commit: 4fb8fd4cbc5975baaa3139b6db6c1c5d0cc5b585
      https://github.com/llvm/llvm-project/commit/4fb8fd4cbc5975baaa3139b6db6c1c5d0cc5b585
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-02-26 (Wed, 26 Feb 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/LiveIntervals.h
    M llvm/lib/CodeGen/LiveIntervals.cpp

  Log Message:
  -----------
  Use yet another allocator for LiveRanges

Not sure it's worth it for these, there should never be all that
many. We could pre-allocate the maximum size up front.


Compare: https://github.com/llvm/llvm-project/compare/c15e46a58e8f...4fb8fd4cbc59

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list