[PATCH] D80206: [IR] Clean up dead instructions after simplifying a conditional branch
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 06:28:32 PDT 2020
foad created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
foad added a parent revision: D80141: [IR] Simplify BasicBlock::removePredecessor. NFCI..
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80206
Files:
llvm/include/llvm/IR/BasicBlock.h
llvm/lib/IR/BasicBlock.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/PGOProfile/chr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80206.264876.patch
Type: text/x-patch
Size: 18119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200519/706938ac/attachment.bin>
More information about the llvm-commits
mailing list