factor a bunch of copy/paste code out into a helper function.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Nov 2008 04:24:12 +0000 (04:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Nov 2008 04:24:12 +0000 (04:24 +0000)
commitfaaf951fabd75e72be1e5cd6fb1ae5afe7ad14c9
tree7bfada065d36fc0aadddb5b70f3da8e342b66088
parentf5b55475b3697f49113c9de331fbf9ad40bda1e6
factor a bunch of copy/paste code out into a helper function.
Eliminate the cases checking for cond?0:-1, since that is already
handled by commutative checking.

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