OSDN Git Service

[LoopSimplifyCFG] Delete dead in-loop blocks
authorMax Kazantsev <max.kazantsev@azul.com>
Thu, 6 Dec 2018 05:45:02 +0000 (05:45 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Thu, 6 Dec 2018 05:45:02 +0000 (05:45 +0000)
commitfeb7e4fb0aec9de46dae5e109753a2c3ee767874
tree686d93358fd7e0a57794cec5b559bde0f4ce42ea
parent053b8656deb6f51c07c7cbfa0fb5242fbda01800
[LoopSimplifyCFG] Delete dead in-loop blocks

This patch teaches LoopSimplifyCFG to delete loop blocks that have
become unreachable after terminator folding has been done.

Differential Revision: https://reviews.llvm.org/D54023
Reviewed By: anna

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll