]> granicus.if.org Git - llvm/commit
[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)
commit2473bf077d3ae81c5977d67c7e5e3b9b31ea2c46
tree0ae1ee03c81e3c0d48a0a3b450803983e9d2f8dd
parentba1d7c682dac830fc69d1c1c2ffb94c75be1433d
[InstCombine] allow icmp (sub nsw) folds for vectors

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

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