[PATCH] [InstCombine] Fix wrong folding of constant comparisons involving ashr and negative values (PR21222).

suyog suyog.sarda at samsung.com
Thu Oct 9 05:12:45 PDT 2014


Hi Andrea,

Thanks for investigating and fixing the bug.
I agree with your point that distance should be calculated using one's compliment 
instead of two's compliment.

LGTM.

http://reviews.llvm.org/D5700






More information about the llvm-commits mailing list