From 4ba22f08133c0a5dbccaa6a442219693c1d677f0 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 7 Jun 2014 04:12:35 +0000 Subject: Revert 209903 and 210040. The messages were "PR19753: Optimize comparisons with "ashr exact" of a constanst." "Added support to optimize comparisons with "lshr exact" of a constant." They were not correctly handling signed/unsigned operation differences, causing pr19958. llvm-svn: 210393 --- llvm/test/Transforms/InstCombine/icmp.ll | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'llvm/test/Transforms') diff --git a/llvm/test/Transforms/InstCombine/icmp.ll b/llvm/test/Transforms/InstCombine/icmp.ll index 8e107edd762..560fbcbfae9 100644 --- a/llvm/test/Transforms/InstCombine/icmp.ll +++ b/llvm/test/Transforms/InstCombine/icmp.ll @@ -1382,19 +1382,3 @@ define i1 @icmp_neg_cst_slt(i32 %a) { %2 = icmp slt i32 %1, -10 ret i1 %2 } - -; CHECK-LABEL: @exact_ashr_eq_false -; CHECK-NEXT: icmp eq i32 %a, 1 -define i1 @exact_ashr_eq_false(i32 %a) { - %shr = ashr exact i32 -30, %a - %cmp = icmp eq i32 %shr, -15 - ret i1 %cmp -} - -; CHECK-LABEL: @exact_lhsr -; CHECK-NEXT: icmp eq i32 %a, 3 -define i1 @exact_lhsr(i32 %a) { - %shr = lshr exact i32 80, %a - %cmp = icmp eq i32 %shr, 10 - ret i1 %cmp -} -- cgit v1.2.3