[llvm] r278707 - minimize test
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 15 11:35:44 PDT 2016
Author: spatel
Date: Mon Aug 15 13:35:44 2016
New Revision: 278707
URL: http://llvm.org/viewvc/llvm-project?rev=278707&view=rev
Log:
minimize test
Modified:
llvm/trunk/test/Transforms/InstCombine/shift.ll
Modified: llvm/trunk/test/Transforms/InstCombine/shift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/shift.ll?rev=278707&r1=278706&r2=278707&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/shift.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/shift.ll Mon Aug 15 13:35:44 2016
@@ -496,26 +496,14 @@ define i1 @test27(i32 %x) nounwind {
ret i1 %z
}
-define i8 @test28(i8 %x) {
+define i1 @test28(i8 %x) {
; CHECK-LABEL: @test28(
-; CHECK-NEXT: entry:
-; CHECK-NEXT: [[COND1:%.*]] = icmp slt i8 %x, 0
-; CHECK-NEXT: br i1 [[COND1]], label %bb1, label %bb2
-; CHECK: bb1:
-; CHECK-NEXT: ret i8 0
-; CHECK: bb2:
-; CHECK-NEXT: ret i8 1
+; CHECK-NEXT: [[CMP:%.*]] = icmp slt i8 %x, 0
+; CHECK-NEXT: ret i1 [[CMP]]
;
-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
+ %shr = lshr i8 %x, 7
+ %cmp = icmp ne i8 %shr, 0
+ ret i1 %cmp
}
define i8 @test28a(i8 %x, i8 %y) {
More information about the llvm-commits
mailing list