OSDN Git Service

When converting phi nodes into select instructions, we shouldn't promote PHI
authorChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 05:12:50 +0000 (05:12 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 05:12:50 +0000 (05:12 +0000)
commit1c7efba2bddd6b17326a012d7bb77f3cf9668078
tree3b770ba76f84ac343b372d572fca80d151ead60d
parent83d3aad50e64704109d9fd745b799f3c5bf0f412
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.  In this case
promoting the phi to a select is silly because we will always have to do the
call conditionally.  As such, select promotion is actually a pessimization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16972 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/SimplifyCFG/PhiNoEliminate.ll [new file with mode: 0644]