[instcombine] icmp eq/ne (sub C, Y), C -> icmp eq/ne Y, 0
authorPhilip Reames <listmail@philipreames.com>
Wed, 21 Aug 2019 15:51:57 +0000 (15:51 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 21 Aug 2019 15:51:57 +0000 (15:51 +0000)
commit764b0fd5a37168313cd7f8d82753b10392ff2b2b
treef41591c35127ad319972ccc800e101ae9da15479
parentf64918d092c078304f9b25c0ee6f456a39474e31
[instcombine] icmp eq/ne (sub C, Y), C -> icmp eq/ne Y, 0

Noticed while looking at pr43028.

llvm-svn: 369541
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp-sub.ll