Do not mark ALL terminators live if any instruciton in the block is live. We only
authorChris Lattner <sabre@nondot.org>
Tue, 24 Jun 2003 21:49:45 +0000 (21:49 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Jun 2003 21:49:45 +0000 (21:49 +0000)
commit99c91e021a41150ac55edf91d1339b5c58a122dc
treefd9e07d433b0ea569103857830d0884427a7c89e
parente4b79d3324332cb1b9ffc988ae1e97c3a4e9c939
Do not mark ALL terminators live if any instruciton in the block is live.  We only
want to mark it live if it is an unconditional branch.  This fixes bug:
ADCE/2002-05-28-Crash.ll and makes this pass _much_ more useful.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ADCE.cpp