[InstCombine] allow icmp (sub nsw) folds for vectors
authorSanjay Patel <spatel@rotateright.com>
Thu, 15 Sep 2016 18:05:17 +0000 (18:05 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 15 Sep 2016 18:05:17 +0000 (18:05 +0000)
commit886a542e2382bbc7dbc027740d50c307fce7e105
treefc51eb2d483317bb4055d7d57d7d7d120584416b
parent514068397ec030ff7f25a38e601d120673984472
[InstCombine] allow icmp (sub nsw) folds for vectors

Also, clean up the code and comments for the existing folds in foldICmpSubConstant().

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