[InstCombine][InstSimplify] add tests for i1/i2 mul with no-wrap; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 18 Jan 2023 15:03:36 +0000 (10:03 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 18 Jan 2023 15:17:06 +0000 (10:17 -0500)
commiteb42b67e8c8e37ef59d03897bcf118dd0cf5f394
tree849dc83f31db69f5bca38f208c33a5672bed643a
parentf8450767384b2a929bad250b4942289598e89612
[InstCombine][InstSimplify] add tests for i1/i2 mul with no-wrap; NFC

A bug was introduced with 68c197f07eeae71 as noted in the
post-commit review comments, and there are potentially
missed smaller transforms/simplifications because no-wrap
multiply with only 1 or 2 bits eliminates some potential
results.
llvm/test/Transforms/InstCombine/sub.ll
llvm/test/Transforms/InstSimplify/mul.ll