diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-07 04:12:35 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-07 04:12:35 +0000 |
| commit | 4ba22f08133c0a5dbccaa6a442219693c1d677f0 (patch) | |
| tree | 1a1055660276083d7d4337c4c5590d1b654207b3 /llvm/test/Transforms | |
| parent | 553aa7b54276216e8c5b1cdd98488b7d559db0f2 (diff) | |
| download | bcm5719-llvm-4ba22f08133c0a5dbccaa6a442219693c1d677f0.tar.gz bcm5719-llvm-4ba22f08133c0a5dbccaa6a442219693c1d677f0.zip | |
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
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/icmp.ll | 16 |
1 files changed, 0 insertions, 16 deletions
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 -} |

