[llvm-branch-commits] [llvm-branch] r83891 - in /llvm/branches/Apple/Leela/test/Transforms/InstCombine: shift.ll shl-icmp.ll
Bill Wendling
isanbard at gmail.com
Mon Oct 12 13:18:41 PDT 2009
Author: void
Date: Mon Oct 12 15:18:41 2009
New Revision: 83891
URL: http://llvm.org/viewvc/llvm-project?rev=83891&view=rev
Log:
$ svn merge -c 83802 https://llvm.org/svn/llvm-project/llvm/trunk
--- Merging r83802 into '.':
U test/Transforms/InstCombine/shift.ll
D test/Transforms/InstCombine/shl-icmp.ll
Removed:
llvm/branches/Apple/Leela/test/Transforms/InstCombine/shl-icmp.ll
Modified:
llvm/branches/Apple/Leela/test/Transforms/InstCombine/shift.ll
Modified: llvm/branches/Apple/Leela/test/Transforms/InstCombine/shift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/test/Transforms/InstCombine/shift.ll?rev=83891&r1=83890&r2=83891&view=diff
==============================================================================
--- llvm/branches/Apple/Leela/test/Transforms/InstCombine/shift.ll (original)
+++ llvm/branches/Apple/Leela/test/Transforms/InstCombine/shift.ll Mon Oct 12 15:18:41 2009
@@ -214,3 +214,37 @@
ret i1 %z
}
+define i8 @test28(i8 %x) {
+entry:
+; CHECK: @test28
+; CHECK: icmp slt i8 %x, 0
+; CHECK-NEXT: br i1
+ %tmp1 = lshr i8 %x, 7
+ %cond1 = icmp ne i8 %tmp1, 0
+ br i1 %cond1, label %bb1, label %bb2
+
+bb1:
+ ret i8 0
+
+bb2:
+ ret i8 1
+}
+
+define i8 @test28a(i8 %x, i8 %y) {
+entry:
+; This shouldn't be transformed.
+; CHECK: @test28a
+; CHECK: %tmp1 = lshr i8 %x, 7
+; CHECK: %cond1 = icmp eq i8 %tmp1, 0
+; CHECK: br i1 %cond1, label %bb2, label %bb1
+ %tmp1 = lshr i8 %x, 7
+ %cond1 = icmp ne i8 %tmp1, 0
+ br i1 %cond1, label %bb1, label %bb2
+bb1:
+ ret i8 %tmp1
+bb2:
+ %tmp2 = add i8 %tmp1, %y
+ ret i8 %tmp2
+}
+
+
Removed: llvm/branches/Apple/Leela/test/Transforms/InstCombine/shl-icmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/test/Transforms/InstCombine/shl-icmp.ll?rev=83890&view=auto
==============================================================================
--- llvm/branches/Apple/Leela/test/Transforms/InstCombine/shl-icmp.ll (original)
+++ llvm/branches/Apple/Leela/test/Transforms/InstCombine/shl-icmp.ll (removed)
@@ -1,29 +0,0 @@
-; RUN: opt < %s -instcombine -stats -disable-output |& \
-; RUN: grep {Number of insts combined} | grep 5
-
-define i8 @t1(i8 zeroext %x, i8 zeroext %y) zeroext nounwind {
-entry:
- %tmp1 = lshr i8 %x, 7
- %cond1 = icmp ne i8 %tmp1, 0
- br i1 %cond1, label %bb1, label %bb2
-
-bb1:
- ret i8 %tmp1
-
-bb2:
- %tmp2 = add i8 %tmp1, %y
- ret i8 %tmp2
-}
-
-define i8 @t2(i8 zeroext %x) zeroext nounwind {
-entry:
- %tmp1 = lshr i8 %x, 7
- %cond1 = icmp ne i8 %tmp1, 0
- br i1 %cond1, label %bb1, label %bb2
-
-bb1:
- ret i8 0
-
-bb2:
- ret i8 1
-}
More information about the llvm-branch-commits
mailing list