[InstCombine] Propagate the nuw for combine of add+mul
authorzhongyunde <zhongyunde@huawei.com>
Sun, 28 Aug 2022 09:46:37 +0000 (17:46 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Sun, 28 Aug 2022 15:01:11 +0000 (23:01 +0800)
commit84d6966e4d6fe86e1cc198f4f61044a09daded3e
tree0662143c4d4bcd39eb26910e9fef7b3808dbb0ef
parentaf98b875e89e3b8071f4c617916b5b9590cc30cc
[InstCombine] Propagate the nuw for combine of add+mul

As the commit of D132658, make the 'nuw' change separately.
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D132777
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/mul.ll