Enhance the previous fix for PR4895 to allow more values than just
authorChris Lattner <sabre@nondot.org>
Sun, 27 Sep 2009 20:18:49 +0000 (20:18 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Sep 2009 20:18:49 +0000 (20:18 +0000)
commitc6df8f4d5f8c1d672847ccc91eade453b21a4884
tree0c9ca7659d7ef71bc35512c98d6d8f3f0594b89b
parent5d1704ddbf6d6471f4e8f9e0b27ab844d80e8172
Enhance the previous fix for PR4895 to allow more values than just
simple constants for the true/false value of the select.  We now
do phi translation etc.  This really fixes PR4895 :)

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