[InstSimplify] add no-wrap parameters to simplifyMul and add more tests; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 18 Jan 2023 18:21:32 +0000 (13:21 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 18 Jan 2023 18:29:30 +0000 (13:29 -0500)
commit1378e7d8b8f3c536a0ad218b1f7a0a6cf963fbcf
treefef689dd15a1281240430958c339f4da82999dd1
parentecade80d93960ad01d8665db02c23841e055a80f
[InstSimplify] add no-wrap parameters to simplifyMul and add more tests; NFC

This gives mul the same capabilities as add/sub.
A potential improvement with nsw was noted in:
1720ec6da040729f17
llvm/include/llvm/Analysis/InstructionSimplify.h
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstSimplify/mul.ll