aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2019-12-09 12:04:00 +0100
committerConnor Abbott <cwabbott0@gmail.com>2020-01-29 15:08:46 +0100
commit323bfde20c5f3e63db3d6b385b394ed38542abe6 (patch)
tree3e5cde721f70bf35691cac7cec97114f87b3d0c2 /llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
parent0994c485e61322a04e580d83617eab547292aba2 (diff)
downloadllvm-323bfde20c5f3e63db3d6b385b394ed38542abe6.zip
llvm-323bfde20c5f3e63db3d6b385b394ed38542abe6.tar.gz
llvm-323bfde20c5f3e63db3d6b385b394ed38542abe6.tar.bz2
AMDGPU: Fix AMDGPUUnifyDivergentExitNodes with no normal returns
Summary: The code was assuming in a few places that if there was only one exit from the function that it was a normal return, which is invalid. It could be an infinite loop, in which case we still need to insert the usual fake edge so that the null export happens. This fixes shaders that end with an infinite loop that discards. Reviewers: arsenm, nhaehnle, critson Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71192
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeMoverUtils.cpp')
0 files changed, 0 insertions, 0 deletions