[PATCH] D24700: [InstCombine] optimize unsigned icmp of increment

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 13:04:42 PDT 2016


sanjoy added a comment.

lgtm, as stated earlier.

If you don't have commit access yet, let me know and I will commit this for you.


================
Comment at: test/Transforms/InstCombine/icmp.ll:2799
@@ +2798,3 @@
+; CHECK-LABEL: @cmp_ult_rhs_inc(
+; CHECK-NEXT:    [[CONV:%.*]] = fptosi float %x to i32
+; CHECK-NEXT:    [[CMP:%.*]] = icmp ule i32 [[CONV]], %i
----------------
Ok.


https://reviews.llvm.org/D24700





More information about the llvm-commits mailing list