CorrelatedPropagation: BasicBlock::removePredecessor can simplify PHI nodes. If the...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 28 Sep 2012 10:42:50 +0000 (10:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 28 Sep 2012 10:42:50 +0000 (10:42 +0000)
commit8be16fe70395c30762081388b8f6df323ddc82eb
treeb329dbdf6fc2101abba78455220e91b73093b7e0
parent53347ed2f8b6a80a36b0450a13eaa44da983ac3d
CorrelatedPropagation: BasicBlock::removePredecessor can simplify PHI nodes. If the it's the condition of a SwitchInst, reload it.

Fixes PR13972.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164818 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
test/Transforms/CorrelatedValuePropagation/crash.ll