[PATCH] Added InstCombine transform for pattern " ((X % Z) + (Y % Z)) % Z -> (X + Y) % Z ".

Ankur Garg ankur29.garg at samsung.com
Wed Oct 1 03:07:26 PDT 2014


Hi David,
I have made the changes as per your comments. I have made sure that the I isn't mutated and also added CHECK statements for the test cases.
Please review the updated revision.

Thanks.

http://reviews.llvm.org/D5351

Files:
  lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  test/Transforms/InstCombine/rem.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5351.14270.patch
Type: text/x-patch
Size: 2012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141001/614bbb47/attachment.bin>


More information about the llvm-commits mailing list