diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-02-24 10:02:16 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-24 10:02:16 +0000 |
commit | ec72e3722033762fdbf828f1ff8ec2cf406411c8 (patch) | |
tree | 3850d5f3e50e062601f573ea65632fb7f394042f /llvm/lib/Target/AMDGPU/AMDKernelCodeT.h | |
parent | e2ad73759d80376f3d450d05843bd86ac408c221 (diff) | |
download | bcm5719-llvm-ec72e3722033762fdbf828f1ff8ec2cf406411c8.tar.gz bcm5719-llvm-ec72e3722033762fdbf828f1ff8ec2cf406411c8.zip |
[SimplifyCFG] Do not blindly remove unreachable blocks
DeleteDeadBlock was called indiscriminately, leading to cleanuprets with
undef cleanuppad references.
Instead, try to drain the BB of most of it's instructions if it is
unreachable. We can then remove the BB if it solely consists of a
terminator (and maybe some phis).
llvm-svn: 261731
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDKernelCodeT.h')
0 files changed, 0 insertions, 0 deletions