[PATCH] Added InstCombine transform for pattern " ((X % Z) + (Y % Z)) % Z -> (X + Y) % Z ".
Ankur Garg
ankur29.garg at samsung.com
Sun Oct 19 02:34:15 PDT 2014
Hi nlopes,
Thanks for reviewing the patch.
In the example you have stated,
%x i2 = 3
since we are talking about signed integers, that is equivalent to %x i2 = -1
Similarly, %y i2 = -1 and %z i2 = -1.
I am not sure how [%6 = add %x, %y] calculates to [%6 i2 = 2]. Shouldn't it be [%6 i2 = -2] ?
Please clarify.
Thanks.
http://reviews.llvm.org/D5351
More information about the llvm-commits
mailing list