[all-commits] [llvm/llvm-project] e2301d: [TableGen] Reduce size of MatchTableRecord (NFC) (...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jan 31 08:37:39 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2301d674976b84ba505065a9702f3376e05bc43
      https://github.com/llvm/llvm-project/commit/e2301d674976b84ba505065a9702f3376e05bc43
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-01-31 (Fri, 31 Jan 2025)

  Changed paths:
    M llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
    M llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h

  Log Message:
  -----------
  [TableGen] Reduce size of MatchTableRecord (NFC) (#125221)

MatchTableRecord stores a 64-bit RawValue. However, this field is only
needed by a small part of the code (jump table generation).

Create a separate RecordAndValue structure that is used in just the
necessary places.

Based on massif, this reduces memory usage on RISCVGenGlobalISel.inc by
about 100MB (to 2.15GB).



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