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

Ankur Garg ankur29.garg at samsung.com
Mon Sep 15 03:38:15 PDT 2014


Hi majnemer, suyog, dexonsmith,

Hi Eveyone,

This patch implements the following transformation

 " ((X % Z) + (Y % Z)) % Z -> (X + Y) % Z "

Please help in reviewing it.

Regards,
Ankur.

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.13700.patch
Type: text/x-patch
Size: 1348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140915/f2cf6ffe/attachment.bin>


More information about the llvm-commits mailing list