AMDGPU: Remove redundant MIMG instruction variants
authorNicolai Haehnle <nhaehnle@gmail.com>
Thu, 21 Jun 2018 13:37:55 +0000 (13:37 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Thu, 21 Jun 2018 13:37:55 +0000 (13:37 +0000)
commit15745ba5c119f8f53363205ccd6f38c5171e0d5c
tree70f4f4463bf60447183d1f208a6e19040d1c4e6a
parentdb6911a6f9592fa394c0e0a1c0cf268a696e018f
AMDGPU: Remove redundant MIMG instruction variants

Summary:
For sample and gather ops, we can accurately determine the set of
vaddr-size instruction variants that are required. This reduces
the size of instruction tables by ~5%.

The number of machine instruction opcodes is reduced from 10002
to 9476.

Change-Id: Ie7fc65d3657b762c7816017fe70b2e9bec644a8a

Reviewers: arsenm, rampitec

Subscribers: kzhuravl, wdng, yaxunl, dstuttard, tpr, llvm-commits, t-tye

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

llvm-svn: 335232
llvm/lib/Target/AMDGPU/MIMGInstructions.td
llvm/test/MC/AMDGPU/gfx7_asm_all.s
llvm/test/MC/AMDGPU/gfx8_asm_all.s