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

Ankur Garg ankur29.garg at samsung.com
Tue Sep 16 05:11:09 PDT 2014


Thanks nlopes for the comments.
I think the tranformation only works for cases in which the addition doesn't overflow. I will add that check and resubmit the patch.

Thanks.

http://reviews.llvm.org/D5351






More information about the llvm-commits mailing list