The select instruction is not neccesarily in the same block as the
authorChris Lattner <sabre@nondot.org>
Mon, 28 Sep 2009 06:49:44 +0000 (06:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Sep 2009 06:49:44 +0000 (06:49 +0000)
commit3ddfb21306831c96791505c2e8e727923010354f
tree3f48d7c7603349fdccf1da0bf2285df424ba6b97
parent0e6b590b91fcf6d49d2c25196f5053ce285e17f5
The select instruction is not neccesarily in the same block as the
phi nodes.  Make sure to phi translate from the right block.

This fixes a llvm-building-llvm failure on GVN-PRE.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/select.ll