[PATCH] D88777: [AMDGPU] Add SI_EARLY_TERMINATE_SCC0 for early terminating shader

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 01:10:10 PDT 2020


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

Add pseudo instruction to allow early termination of pixel shader
anywhere based on the value of SCC.  The intention is to use this
when a mask of live lanes is updated, e.g. live lanes in WQM pass.
This facilitates early termination of shaders even when EXEC is
incomplete, e.g. in non-uniform control flow.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88777

Files:
  llvm/lib/Target/AMDGPU/SIInsertSkips.cpp
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/test/CodeGen/AMDGPU/early-term.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88777.295967.patch
Type: text/x-patch
Size: 9404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201003/5e2c1bee/attachment.bin>


More information about the llvm-commits mailing list