[PATCH] D45976: [InstCombine] Simplify Add with remainder expressions as operands.
Bixia Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 11:23:12 PDT 2018
bixia added inline comments.
================
Comment at: test/Transforms/InstCombine/add4.ll:92
+ %tmp3 = mul i32 %tmp2, 299
+ %tmp4 = add nuw nsw i32 %tmp, %tmp3
+ ret i32 %tmp4
----------------
sanjoy wrote:
> You should probably add a test case with where the `add` does not have `nuw` or `nsw`, just to show that these flags are not necessary.
Removed nuw nsw from the tests.
Repository:
rL LLVM
https://reviews.llvm.org/D45976
More information about the llvm-commits
mailing list