aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-13 07:41:29 +0000
committerChris Lattner <sabre@nondot.org>2010-12-13 07:41:29 +0000
commit92407e589524d98080f4db943a0e2a3bf18ec8a2 (patch)
tree30ae4d84a9a2c990439268125e0935859da100ba /test/Transforms/SimplifyCFG
parent11ae9e29a98595c1899047a64f621fbe46ce7015 (diff)
Completely disable the optimization I added in r121680 until
I can track down a miscompile. This should bring the buildbots back to life git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG')
-rw-r--r--test/Transforms/SimplifyCFG/switch_create.ll55
1 files changed, 28 insertions, 27 deletions
diff --git a/test/Transforms/SimplifyCFG/switch_create.ll b/test/Transforms/SimplifyCFG/switch_create.ll
index ce82936c31..2f0dc94c08 100644
--- a/test/Transforms/SimplifyCFG/switch_create.ll
+++ b/test/Transforms/SimplifyCFG/switch_create.ll
@@ -168,13 +168,13 @@ if.end: ; preds = %entry
ret void
; CHECK: @test7
-; CHECK: %cmp = icmp ult i32 %x, 32
-; CHECK: br i1 %cmp, label %if.then, label %switch.early.test
-; CHECK: switch.early.test:
-; CHECK: switch i8 %c, label %if.end [
-; CHECK: i8 99, label %if.then
-; CHECK: i8 97, label %if.then
-; CHECK: ]
+; HECK: %cmp = icmp ult i32 %x, 32
+; HECK: br i1 %cmp, label %if.then, label %switch.early.test
+; HECK: switch.early.test:
+; HECK: switch i8 %c, label %if.end [
+; HECK: i8 99, label %if.then
+; HECK: i8 97, label %if.then
+; HECK: ]
}
define i32 @test8(i8 zeroext %c, i32 %x, i1 %C) nounwind ssp noredzone {
@@ -197,14 +197,15 @@ if.end: ; preds = %entry
ret i32 0
; CHECK: @test8
-; CHECK: switch.early.test:
-; CHECK: switch i8 %c, label %if.end [
-; CHECK: i8 99, label %if.then
-; CHECK: i8 97, label %if.then
-; CHECK: ]
-; CHECK: %A = phi i32 [ 0, %entry ], [ 42, %switch.early.test ], [ 42, %N ], [ 42, %switch.early.test ]
+; HECK: switch.early.test:
+; HECK: switch i8 %c, label %if.end [
+; HECK: i8 99, label %if.then
+; HECK: i8 97, label %if.then
+; HECK: ]
+; HECK: %A = phi i32 [ 0, %entry ], [ 42, %switch.early.test ], [ 42, %N ], [ 42, %switch.early.test ]
}
+;; This is "Example 7" from http://blog.regehr.org/archives/320
define i32 @test9(i8 zeroext %c) nounwind ssp noredzone {
entry:
%cmp = icmp ult i8 %c, 33
@@ -253,20 +254,20 @@ lor.end: ; preds = %lor.rhs, %lor.lhs.f
; CHECK: @test9
; CHECK: %cmp = icmp ult i8 %c, 33
-; CHECK: br i1 %cmp, label %lor.end, label %switch.early.test
-
-; CHECK: switch.early.test:
-; CHECK: switch i8 %c, label %lor.rhs [
-; CHECK: i8 46, label %lor.end
-; CHECK: i8 44, label %lor.end
-; CHECK: i8 58, label %lor.end
-; CHECK: i8 59, label %lor.end
-; CHECK: i8 60, label %lor.end
-; CHECK: i8 62, label %lor.end
-; CHECK: i8 34, label %lor.end
-; CHECK: i8 92, label %lor.end
-; CHECK: i8 39, label %lor.end
-; CHECK: ]
+; HECK: br i1 %cmp, label %lor.end, label %switch.early.test
+
+; HECK: switch.early.test:
+; HECK: switch i8 %c, label %lor.rhs [
+; HECK: i8 46, label %lor.end
+; HECK: i8 44, label %lor.end
+; HECK: i8 58, label %lor.end
+; HECK: i8 59, label %lor.end
+; HECK: i8 60, label %lor.end
+; HECK: i8 62, label %lor.end
+; HECK: i8 34, label %lor.end
+; HECK: i8 92, label %lor.end
+; HECK: i8 39, label %lor.end
+; HECK: ]
}