[PATCH] D82737: [AMDGPU] Insert PS early exit at end of control flow

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 28 23:57:31 PDT 2020


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

Depends on D82641 <https://reviews.llvm.org/D82641>.
Exit early if the exec mask is zero at the end of control flow.
Mark the ends of control flow during control flow lowering and
convert these to exits during the insert skips pass.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82737

Files:
  llvm/lib/Target/AMDGPU/SIInsertSkips.cpp
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
  llvm/test/CodeGen/AMDGPU/kill-infinite-loop.ll
  llvm/test/CodeGen/AMDGPU/skip-if-dead.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82737.273997.patch
Type: text/x-patch
Size: 10756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200629/fa662e30/attachment-0001.bin>


More information about the llvm-commits mailing list