diff options
author | Amara Emerson <amara@apple.com> | 2021-10-05 17:41:21 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2021-10-05 23:06:22 -0700 |
commit | 6bc64e24c38a42f2797ee64c78cb2d42b245b59e (patch) | |
tree | 760bda91147aa25ccf7ac7f59833fec71dd22ec2 /llvm/lib/Support/ErrorHandling.cpp | |
parent | cb89d3739db746ea50eb50b7208e689126394391 (diff) | |
download | llvm-6bc64e24c38a42f2797ee64c78cb2d42b245b59e.zip llvm-6bc64e24c38a42f2797ee64c78cb2d42b245b59e.tar.gz llvm-6bc64e24c38a42f2797ee64c78cb2d42b245b59e.tar.bz2 |
[GlobalISel] Clear unreachable blocks' contents after selection.
If these blocks are unreachable, then we can discard all of the instructions.
However, keep the block around because it may have an address taken or the
block may have a stale reference from a PHI somewhere. Instead of finding
those PHIs and fixing them up, just leave the block empty.
Differential Revision: https://reviews.llvm.org/D111201
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions