[InstCombine] replace divide-by-constant checks with asserts; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 30 Aug 2016 17:31:34 +0000 (17:31 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 30 Aug 2016 17:31:34 +0000 (17:31 +0000)
commitb37145712e2d1b318a302f5ecee1871b93c28164
treed5f1d2778a8a6004a174b5c7e4c1c4a058f2e5c5
parent84fc059e380816ac8becf25d6f0cc07b1bb60ce5
[InstCombine] replace divide-by-constant checks with asserts; NFC

These folds already have tests for scalar and vector types, except
for the vector div-by-0 case, so I'm adding tests for that.

llvm-svn: 280115
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstSimplify/undef.ll