Limit the icmp+phi merging optimization to the cases where it is profitable:
authorChris Lattner <sabre@nondot.org>
Sun, 8 Jun 2008 20:52:11 +0000 (20:52 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 8 Jun 2008 20:52:11 +0000 (20:52 +0000)
commit7d8ab4efbc340638c8f6748f620550df4065bec6
tree7bb455da66ddb84b273c823a3639bc57b07bf1f3
parentc4e6b373299cb9d6aa3b43c26ff7a80bca7e116c
Limit the icmp+phi merging optimization to the cases where it is profitable:
don't make i1 phis when it won't be possible to eliminate them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52097 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll [new file with mode: 0644]