[InstCombine] allow icmp (div X, Y), C folds for splat constant vectors
authorSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 21:57:21 +0000 (21:57 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 21:57:21 +0000 (21:57 +0000)
commit541aef4661dc19aa7eff6324756ab5f9124239de
treecf9cf597f1806b2cc01509e3241c76d477fd3e70
parentb50eb8dc2b3cb0005eb0187e1cb9fe7a68a0a070
[InstCombine] allow icmp (div X, Y), C folds for splat constant vectors

Converting all of the overflow ops to APInt looked risky, so I've left that as a TODO.

llvm-svn: 280299
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
llvm/test/Transforms/InstCombine/div.ll
llvm/test/Transforms/InstCombine/exact.ll
llvm/test/Transforms/InstCombine/icmp.ll