[all-commits] [llvm/llvm-project] 38aac8: [TableGen] Speed up inferMatchingSuperRegClass. NF...

Jay Foad via All-commits all-commits at lists.llvm.org
Wed Mar 26 14:41:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38aac86a2490ba1974755758e1311a6cbdbefb25
      https://github.com/llvm/llvm-project/commit/38aac86a2490ba1974755758e1311a6cbdbefb25
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2025-03-26 (Wed, 26 Mar 2025)

  Changed paths:
    M llvm/utils/TableGen/Common/CodeGenRegisters.cpp

  Log Message:
  -----------
  [TableGen] Speed up inferMatchingSuperRegClass. NFC. (#133060)

SubToSuperRegs was a DenseMap of std::vectors, where the vectors
typically had size 1. Switching to a vector of pairs avoids the overhead
of allocating tiny vectors.

I measured a 1.14x speed-up building AMDGPUGenRegisterInfo.inc with this
patch.



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