[PATCH] D76364: [AMDGPU] Fix AMDGPUUnifyDivergentExitNodes

Piotr Sobczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 18 07:36:25 PDT 2020


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

For the case where "done" bits on existing exports are removed
by unifyReturnBlockSet(), unify all return blocks - even the
uniformly reached ones. We do not want to end up with a non-unified,
uniformly reached block containing a normal export with the "done"
bit cleared.

That case is believed to be rare - possible with infinite loops
in pixel shaders.

This is a fix for D71192 <https://reviews.llvm.org/D71192>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76364

Files:
  llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  llvm/test/CodeGen/AMDGPU/multi-divergent-exit-region.ll
  llvm/test/CodeGen/AMDGPU/update-phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76364.251079.patch
Type: text/x-patch
Size: 4583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200318/d4a29f2a/attachment-0001.bin>


More information about the llvm-commits mailing list