Skip to content

Commit 2f0c281

Browse files
committed
tests: re-enable dead_code_elimination test.
... and adapted a test of inifnite-loops. rdar://problem/34013900
1 parent 8f58361 commit 2f0c281

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/SILOptimizer/dead_code_elimination.sil

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -dce %s | %FileCheck %s
22

3-
// REQUIRES: rdar34013900
4-
53
sil_stage canonical
64

75
import Builtin
@@ -59,17 +57,15 @@ bb3:
5957
return %18 : $()
6058
}
6159

62-
// We currently bail out on functions that have structurally infinite
63-
// loops.
6460
// CHECK-LABEL: sil @dead3
6561
sil @dead3 : $@convention(thin) () -> () {
6662
bb0:
6763
// CHECK: bb0
6864
br bb1
6965
// CHECK: bb1
7066
bb1:
71-
// CHECK: integer_literal $Builtin.Int32, 0
72-
// CHECK: br bb1
67+
// CHECK: bb1:
68+
// CHECK-NEXT: br bb1
7369
%0 = integer_literal $Builtin.Int32, 0
7470
br bb1
7571
}

0 commit comments

Comments
 (0)