Skip to content

Commit 9825b26

Browse files
committed
[Test] Underscored simplify_cfg_simplify_argument.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 2878b05 commit 9825b26

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3793,7 +3793,7 @@ namespace swift::test {
37933793
/// Dumps:
37943794
/// - nothing
37953795
static FunctionTest SimplifyCFGSimplifyArgument(
3796-
"simplify-cfg-simplify-argument",
3796+
"simplify_cfg_simplify_argument",
37973797
[](auto &function, auto &arguments, auto &test) {
37983798
auto *passToRun = cast<SILFunctionTransform>(createSimplifyCFG());
37993799
passToRun->injectPassManager(test.getPassManager());

test/SILOptimizer/simplify_cfg_ossa_bbargs.sil

+6-6
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ bb4:
180180
// CHECK-LABEL: } // end sil function 'test_simplify_args8'
181181
sil [ossa] @test_simplify_args8 : $@convention(thin) (@guaranteed Klass) -> () {
182182
bb0(%0 : @guaranteed $Klass):
183-
specify_test "simplify-cfg-simplify-argument @block[1] 0"
183+
specify_test "simplify_cfg_simplify_argument @block[1] 0"
184184
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
185185
br bb1(%1 : $FakeOptional<Klass>)
186186

@@ -200,7 +200,7 @@ bb3:
200200
// CHECK-LABEL: } // end sil function 'test_simplify_args9'
201201
sil [ossa] @test_simplify_args9 : $@convention(thin) (@owned Klass) -> () {
202202
bb0(%0 : @owned $Klass):
203-
specify_test "simplify-cfg-simplify-argument @block[1] 0"
203+
specify_test "simplify_cfg_simplify_argument @block[1] 0"
204204
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
205205
br bb1(%1 : $FakeOptional<Klass>)
206206

@@ -223,7 +223,7 @@ bb3:
223223
// CHECK: return
224224
sil [ossa] @test_dont_remove_mandatory_dead_args : $@convention(thin) (@guaranteed AnyKlass) -> () {
225225
bb0(%0 : @guaranteed $AnyKlass):
226-
specify_test "simplify-cfg-simplify-argument @block[1] 0"
226+
specify_test "simplify_cfg_simplify_argument @block[1] 0"
227227
checked_cast_br AnyKlass in %0 : $AnyKlass to Klass, bb1, bb2
228228

229229
bb1(%1 : @guaranteed $Klass):
@@ -244,7 +244,7 @@ bb3(%4 : $Builtin.Int32):
244244
// CHECK-LABEL: } // end sil function 'test_simplify_enum_arg_owned'
245245
sil [ossa] @test_simplify_enum_arg_owned : $@convention(thin) (@owned Klass) -> () {
246246
bb0(%0 : @owned $Klass):
247-
specify_test "simplify-cfg-simplify-argument @block[1] 0"
247+
specify_test "simplify_cfg_simplify_argument @block[1] 0"
248248
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %0 : $Klass
249249
%c = copy_value %1 : $FakeOptional<Klass>
250250
br bb1(%1 : $FakeOptional<Klass>)
@@ -270,7 +270,7 @@ bb3:
270270
// CHECK-LABEL: } // end sil function 'test_simplify_enum_arg_guaranteed1'
271271
sil [ossa] @test_simplify_enum_arg_guaranteed1 : $@convention(thin) (@owned Klass) -> () {
272272
bb0(%0 : @owned $Klass):
273-
specify_test "simplify-cfg-simplify-argument @block[1] 0"
273+
specify_test "simplify_cfg_simplify_argument @block[1] 0"
274274
%b = begin_borrow %0 : $Klass
275275
%1 = enum $FakeOptional<Klass>, #FakeOptional.some!enumelt, %b : $Klass
276276
%c = copy_value %1 : $FakeOptional<Klass>
@@ -293,7 +293,7 @@ bb2:
293293
// CHECK: bb1([[ARG:%.*]] : @guaranteed $NonTrivialStruct)
294294
sil [ossa] @test_simplify_enum_arg_guaranteed2 : $@convention(thin) (@owned Klass) -> () {
295295
bb0(%0 : @owned $Klass):
296-
specify_test "simplify-cfg-simplify-argument @block[1] 0"
296+
specify_test "simplify_cfg_simplify_argument @block[1] 0"
297297
%b = begin_borrow %0 : $Klass
298298
%1 = struct $NonTrivialStruct(%b : $Klass)
299299
%c = copy_value %1 : $NonTrivialStruct

0 commit comments

Comments
 (0)