first step to fixing PR8642: don't fold away empty basic blocks
authorChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 03:02:34 +0000 (03:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 03:02:34 +0000 (03:02 +0000)
commit140f4a315b4b1bb5402a78b37756aa6c212ed390
treeff9a0189aba69cd9703e3570b05bb729538de773
parent78d0094e4c91cde903b08fac24b76043ab654967
first step to fixing PR8642: don't fold away empty basic blocks
which have trapping constant exprs in them due to PHI nodes.
Eliminating them can cause the constant expr to be evalutated
on new paths if the input edges are critical.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/basic.ll [new file with mode: 0644]