[PATCH] D25913: [InstCombine] Fold nuw left-shifts in `ugt`/`ule` comparisons.
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 10:00:21 PDT 2016
spatel added a comment.
In https://reviews.llvm.org/D25913#584760, @bryant wrote:
> Sanjay: Would you mind landing this if there are no further objections? Thanks in advance. (:
Sure - let's ping Eli to make sure there are no other suggestions, but the code looks good to me.
================
Comment at: test/Transforms/InstCombine/icmp-shl-nuw.ll:54-55
+
+define <2 x i1> @icmp_ule_16x2_non_pow2_shift(<2 x i64>) {
+; CHECK-LABEL: @icmp_ule_16x2_non_pow2_shift(
+; CHECK-NEXT: [[D:%.*]] = icmp ult <2 x i64> %0, <i64 4, i64 4>
----------------
"16x2" --> "12x2" ?
Repository:
rL LLVM
https://reviews.llvm.org/D25913
More information about the llvm-commits
mailing list