[all-commits] [llvm/llvm-project] 303e1c: [TableGen] Fix calculation of Lanemask for RCs wit...

Sander de Smalen via All-commits all-commits at lists.llvm.org
Mon Nov 4 07:29:11 PST 2024


  Branch: refs/heads/users/sdesmalen-arm/srlt-fix-tablegen-artificial-subreg-map
  Home:   https://github.com/llvm/llvm-project
  Commit: 303e1c87e0ea835d5892afaa04c9e72d2d1778f4
      https://github.com/llvm/llvm-project/commit/303e1c87e0ea835d5892afaa04c9e72d2d1778f4
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

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

  Log Message:
  -----------
  [TableGen] Fix calculation of Lanemask for RCs with artificial subregs.

TableGen builds up a map of "SubRegIdx -> Subclass" where Subclass is
the largest class where all registers have SubRegIdx as a
sub-register. When SubRegIdx (vis-a-vis the sub-register) is
artificial it should still include it in the map. This map is used in
various places, including in the calculation of the Lanemask of a
register class, which otherwise calculates an incorrect lanemask.



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