Skip to content

Commit c0d95c1

Browse files
committed
[Test] Underscored simplify_cfg_simplify_switch_enum_on_objc_class_optional.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 7470c29 commit c0d95c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ namespace swift::test {
21392139
/// Dumps:
21402140
/// - nothing
21412141
static FunctionTest SimplifyCFGSwitchEnumOnObjcClassOptional(
2142-
"simplify-cfg-simplify-switch-enum-on-objc-class-optional",
2142+
"simplify_cfg_simplify_switch_enum_on_objc_class_optional",
21432143
[](auto &function, auto &arguments, auto &test) {
21442144
auto *passToRun = cast<SILFunctionTransform>(createSimplifyCFG());
21452145
passToRun->injectPassManager(test.getPassManager());

test/SILOptimizer/simplify_switch_enum_objc_ossa.sil

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Test : NSObject {
1313
// CHECK-LABEL: } // end sil function 'test_switch_enum_objc_call1'
1414
sil [ossa] @test_switch_enum_objc_call1 : $@convention(thin) (@guaranteed Optional<Test>) -> () {
1515
bb0(%0 : @guaranteed $Optional<Test>):
16-
specify_test "simplify-cfg-simplify-switch-enum-on-objc-class-optional @instruction[1]"
16+
specify_test "simplify_cfg_simplify_switch_enum_on_objc_class_optional @instruction[1]"
1717
%3 = copy_value %0 : $Optional<Test>
1818
switch_enum %3 : $Optional<Test>, case #Optional.some!enumelt: bb1, case #Optional.none!enumelt: bb6
1919

@@ -39,7 +39,7 @@ sil @some_sideeffect : $@convention(thin) () -> ()
3939
// CHECK-LABEL: } // end sil function 'test_switch_enum_objc_call2'
4040
sil [ossa] @test_switch_enum_objc_call2 : $@convention(thin) (@guaranteed Optional<Test>) -> () {
4141
bb0(%0 : @guaranteed $Optional<Test>):
42-
specify_test "simplify-cfg-simplify-switch-enum-on-objc-class-optional @instruction[1]"
42+
specify_test "simplify_cfg_simplify_switch_enum_on_objc_class_optional @instruction[1]"
4343
%3 = copy_value %0 : $Optional<Test>
4444
switch_enum %3 : $Optional<Test>, case #Optional.some!enumelt: bb1, case #Optional.none!enumelt: bb6
4545

@@ -65,7 +65,7 @@ bb6:
6565
// CHECK-LABEL: } // end sil function 'test_switch_enum_objc_call3'
6666
sil [ossa] @test_switch_enum_objc_call3 : $@convention(thin) (@guaranteed Optional<Test>) -> () {
6767
bb0(%0 : @guaranteed $Optional<Test>):
68-
specify_test "simplify-cfg-simplify-switch-enum-on-objc-class-optional @instruction[1]"
68+
specify_test "simplify_cfg_simplify_switch_enum_on_objc_class_optional @instruction[1]"
6969
%3 = copy_value %0 : $Optional<Test>
7070
switch_enum %3 : $Optional<Test>, case #Optional.some!enumelt: bb1, case #Optional.none!enumelt: bb6
7171

@@ -91,7 +91,7 @@ bb6:
9191
// CHECK-LABEL: } // end sil function 'test_switch_enum_objc_call4'
9292
sil [ossa] @test_switch_enum_objc_call4 : $@convention(thin) (@guaranteed Optional<Test>) -> () {
9393
bb0(%0 : @guaranteed $Optional<Test>):
94-
specify_test "simplify-cfg-simplify-switch-enum-on-objc-class-optional @instruction[1]"
94+
specify_test "simplify_cfg_simplify_switch_enum_on_objc_class_optional @instruction[1]"
9595
%3 = copy_value %0 : $Optional<Test>
9696
switch_enum %3 : $Optional<Test>, case #Optional.some!enumelt: bb1, case #Optional.none!enumelt: bb6
9797

@@ -117,7 +117,7 @@ bb6:
117117
// CHECK-LABEL: } // end sil function 'test_switch_enum_objc_call5'
118118
sil [ossa] @test_switch_enum_objc_call5 : $@convention(thin) (@guaranteed Optional<Test>) -> () {
119119
bb0(%0 : @guaranteed $Optional<Test>):
120-
specify_test "simplify-cfg-simplify-switch-enum-on-objc-class-optional @instruction[0]"
120+
specify_test "simplify_cfg_simplify_switch_enum_on_objc_class_optional @instruction[0]"
121121
switch_enum %0 : $Optional<Test>, case #Optional.some!enumelt: bb1, case #Optional.none!enumelt: bb6
122122

123123
bb1(%8 : @guaranteed $Test):

0 commit comments

Comments
 (0)