[AMDGPU] Update SIInsertHardClauses for GFX11
authorJay Foad <jay.foad@amd.com>
Thu, 9 Jun 2022 10:38:48 +0000 (11:38 +0100)
committerJay Foad <jay.foad@amd.com>
Thu, 9 Jun 2022 20:29:56 +0000 (21:29 +0100)
commitffe86e3bdd77957245e13a48e341c38c511e9519
tree0f28d9c5bb14a165cb0369d5ab81e9ed2255125e
parent87b46776c44e0ef74f97c671eb39c317d8242769
[AMDGPU] Update SIInsertHardClauses for GFX11

Changes for GFX11:
- Clauses may not mix instructions of different types, and there are
  more types. For example image instructions with and without a sampler
  are now different types.
- The max size of a clause is explicitly documented as 63 instructions.
  Previously it was implicitly assumed to be 64. This is such a tiny
  difference that it does not seem worth making it conditional on the
  subtarget.
- It can be beneficial to clause stores as well as loads.

Differential Revision: https://reviews.llvm.org/D127391
llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
llvm/test/CodeGen/AMDGPU/hard-clauses.mir