[all-commits] [llvm/llvm-project] 2fd37c: [TableGen] Remove RegUnitIterator. NFC. (#147483)

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Jul 8 08:18:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fd37c9f33f24dda4125fe9c7cfc4002f6e37922
      https://github.com/llvm/llvm-project/commit/2fd37c9f33f24dda4125fe9c7cfc4002f6e37922
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

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

  Log Message:
  -----------
  [TableGen] Remove RegUnitIterator. NFC. (#147483)

TableGen's RegUnitIterator is a strange contraption that iterates over a
range of registers as well as the regunits of each register. Since it is
only used in one place in a `for` loop, it is much simpler to use two
nested loops instead.



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