When converting phi nodes into select instructions, we shouldn't promote PHI
authorChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 05:13:36 +0000 (05:13 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 05:13:36 +0000 (05:13 +0000)
commit9c07866ef861e072395306e9811c329c7fe5bbe8
tree8c3d9180a3539c32211a3ca4398cd458cbca75df
parent1c7efba2bddd6b17326a012d7bb77f3cf9668078
When converting phi nodes into select instructions, we shouldn't promote PHI
nodes unless we KNOW that we are able to promote all of them.

This fixes: test/Regression/Transforms/SimplifyCFG/PhiNoEliminate.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16973 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp