[all-commits] [llvm/llvm-project] 19bb53: [AMDGPU] Remove unused MIMG tablegen variants

Mirko BrkuĊĦanin via All-commits all-commits at lists.llvm.org
Fri Aug 5 06:55:36 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19bb535ed99407c95863807a01bc11e205842070
  Author: Mirko Brkusanin <Mirko.Brkusanin at amd.com>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/MIMGInstructions.td

  Log Message:
  [AMDGPU] Remove unused MIMG tablegen variants

There are no AMDGPUSampleVariant versions for _G16, it is treated more like a
modifier for derivatives (_D) (also for intrinsics where it is overloaded type
instead of part of instrinsic name) so we ended up making more variants for
these instruction then we actually needed.

32-bit derivatives need 6 dwords at most, while 16-bit need 4 at most. Using
same AMDGPUSampleVariant for both, we ended up creating 2 extra variants per
instruction than were necessary.

In total this deletes 260 unused tablegen records.

Differential Revision: https://reviews.llvm.org/D131252

More information about the All-commits mailing list