This optimization makes MANY phi nodes that all have the same incoming value.
authorChris Lattner <sabre@nondot.org>
Sun, 14 Nov 2004 19:29:34 +0000 (19:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Nov 2004 19:29:34 +0000 (19:29 +0000)
commitb58934484b51d908b660c6b915d8df3bb37c7055
tree420bab876165cb42d03eefa3c808edf41caae9c3
parentbac32866a7cf65a2c201182319ca143e637ecc19
This optimization makes MANY phi nodes that all have the same incoming value.
If this happens, detect it early instead of relying on instcombine to notice
it later.  This can be a big speedup, because PHI nodes can have many
incoming values.

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