[InstCombine] remove duplicated fold ; NFCI
authorSanjay Patel <spatel@rotateright.com>
Thu, 15 Sep 2016 17:01:17 +0000 (17:01 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 15 Sep 2016 17:01:17 +0000 (17:01 +0000)
commit362ff5c0a531987f98074b49ef3eb7387c3f1186
treef00433777a2ae01577eea2687b6874736b73cb32
parentb2d62bd071c6e005483c9fa5b917d7261295eb0c
[InstCombine] remove duplicated fold ; NFCI

This pattern is matched in foldICmpBinOpEqualityWithConstant() and already works
with vectors too. I changed some comments over there to point out the current
location. The tests for this transform are currently in 'sub.ll'.

Note that the remaining folds in this block all require a sub too, so they should
get grouped with the other icmp(sub) patterns.

llvm-svn: 281627
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp