InstCombine: Don't take A-B<0 into A<B if A-B has other uses
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 14 Jan 2015 19:26:56 +0000 (19:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 14 Jan 2015 19:26:56 +0000 (19:26 +0000)
commit5e8cd99f5592ab80c27d8460054cd563cc8132ab
tree346106ecf81930809a018889905f592fa3158b2a
parent8327f0bca1395f898b441802643240e6b8c68002
InstCombine: Don't take A-B<0 into A<B if A-B has other uses

This fixes PR22226.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll