Skip to content

Commit 8d3a5a1

Browse files
committed
[Test] Underscored simplify_cfg_try_jump_threading.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 840198e commit 8d3a5a1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ namespace swift::test {
10791079
/// Dumps:
10801080
/// - nothing
10811081
static FunctionTest SimplifyCFGTryJumpThreading(
1082-
"simplify-cfg-try-jump-threading",
1082+
"simplify_cfg_try_jump_threading",
10831083
[](auto &function, auto &arguments, auto &test) {
10841084
auto *passToRun = cast<SILFunctionTransform>(createSimplifyCFG());
10851085
passToRun->injectPassManager(test.getPassManager());

test/SILOptimizer/simplify_cfg_ossa_jump_threading.sil

+8-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sil @get_klass : $@convention(thin) () -> @owned Klass
2323
// CHECK-LABEL: } // end sil function 'test_simplify_switch_enum_jump_threading1'
2424
sil [ossa] @test_simplify_switch_enum_jump_threading1 : $@convention(thin) (@owned Klass) -> () {
2525
bb0(%0 : @owned $Klass):
26-
specify_test "simplify-cfg-try-jump-threading @instruction[1]"
26+
specify_test "simplify_cfg_try_jump_threading @instruction[1]"
2727
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
2828
br bb1(%1 : $FakeOptional<Klass>)
2929

@@ -51,12 +51,12 @@ bb0(%0 : @owned $Klass):
5151
cond_br undef, bb1, bb2
5252

5353
bb1:
54-
specify_test "simplify-cfg-try-jump-threading @instruction[2]"
54+
specify_test "simplify_cfg_try_jump_threading @instruction[2]"
5555
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
5656
br bb3(%1 : $FakeOptional<Klass>)
5757

5858
bb2:
59-
specify_test "simplify-cfg-try-jump-threading @instruction[5]"
59+
specify_test "simplify_cfg_try_jump_threading @instruction[5]"
6060
destroy_value %0 : $Klass
6161
%2 = enum $FakeOptional<Klass>, #FakeOptional.none!enumelt
6262
br bb3(%2 : $FakeOptional<Klass>)
@@ -87,7 +87,7 @@ bb0(%0 : @owned $Klass):
8787
cond_br undef, bb1, bb2
8888

8989
bb1:
90-
specify_test "simplify-cfg-try-jump-threading @instruction[4]"
90+
specify_test "simplify_cfg_try_jump_threading @instruction[4]"
9191
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
9292
br bb3(%1 : $FakeOptional<Klass>)
9393

@@ -111,7 +111,7 @@ bb4:
111111
// CHECK-LABEL: } // end sil function 'test_jump_thread_ref_ele_loop'
112112
sil [ossa] @test_jump_thread_ref_ele_loop : $@convention(thin) () -> () {
113113
bb0:
114-
specify_test "simplify-cfg-try-jump-threading @instruction[3]"
114+
specify_test "simplify_cfg_try_jump_threading @instruction[3]"
115115
%f = function_ref @get_klass : $@convention(thin) () -> @owned Klass
116116
cond_br undef, bb1, bb2
117117

@@ -153,7 +153,7 @@ bb0(%0 : @owned $AnyKlass, %1 : @owned $AnyKlass):
153153
cond_br undef, bb1, bb2
154154

155155
bb1:
156-
specify_test "simplify-cfg-try-jump-threading @instruction[2]"
156+
specify_test "simplify_cfg_try_jump_threading @instruction[2]"
157157
%2 = copy_value %0 : $AnyKlass
158158
br bb6(%2 : $AnyKlass)
159159

@@ -204,7 +204,7 @@ bb0(%0 : @owned $Klass, %1 : $*Klass):
204204
cond_br undef, bb1, bb2
205205

206206
bb1:
207-
specify_test "simplify-cfg-try-jump-threading @instruction[4]"
207+
specify_test "simplify_cfg_try_jump_threading @instruction[4]"
208208
%2 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
209209
br bb3(%2 : $FakeOptional<Klass>)
210210

@@ -247,7 +247,7 @@ bb0(%0 : @owned $Klass, %1 : $Builtin.RawPointer):
247247
cond_br undef, bb1, bb2
248248

249249
bb1:
250-
specify_test "simplify-cfg-try-jump-threading @instruction[2]"
250+
specify_test "simplify_cfg_try_jump_threading @instruction[2]"
251251
%s = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
252252
br bb3(%s : $FakeOptional<Klass>)
253253

0 commit comments

Comments
 (0)