diff options
author | Jay Foad <jay.foad@amd.com> | 2020-05-18 19:12:29 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2020-06-11 14:53:01 +0100 |
commit | 69bdfb075b293c4b3363f2dc0ac732ca03c3c9ca (patch) | |
tree | 2ed2e13de96b881abf45f9aef601f831925e92c5 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 3d5f7c853173938c6bb8052220487fd9d2987a77 (diff) | |
download | llvm-69bdfb075b293c4b3363f2dc0ac732ca03c3c9ca.zip llvm-69bdfb075b293c4b3363f2dc0ac732ca03c3c9ca.tar.gz llvm-69bdfb075b293c4b3363f2dc0ac732ca03c3c9ca.tar.bz2 |
[IR] Clean up dead instructions after simplifying a conditional branch
Change BasicBlock::removePredecessor to optionally return a vector of
instructions which might be dead. Use this in ConstantFoldTerminator to
delete them if they are dead.
Reapply with a bug fix: don't drop the "!KeepOneInputPHIs" argument when
removePredecessor calls PHINode::removeIncomingValue.
Differential Revision: https://reviews.llvm.org/D80206
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions