[PATCH] D114414: [AMDGPU] Only allow implicit WQM in pixel shaders

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 22 21:23:57 PST 2021


critson created this revision.
critson added reviewers: rampitec, nhaehnle, b-sumner.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
critson requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Implicit derivatives are only valid in pixel shaders,
hence only implicitly enable WQM for pixel shaders.
This avoids unintended WQM in other shader types (e.g. compute)
when image sampling instructions are used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114414

Files:
  llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
  llvm/test/CodeGen/AMDGPU/memory_clause.ll
  llvm/test/CodeGen/AMDGPU/vgpr-tuple-allocation.ll
  llvm/test/CodeGen/AMDGPU/wqm.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114414.389092.patch
Type: text/x-patch
Size: 9038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211123/4db7eb4e/attachment.bin>


More information about the llvm-commits mailing list