Skip to content

Commit 7fc2d01

Browse files
committed
[Test] Renamed test case.
1 parent 1ac17a1 commit 7fc2d01

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/SILOptimizer/SILCombiner/SILCombine.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,12 @@ void SILCombiner::processInstruction(SILInstruction *I,
512512

513513
namespace swift::test {
514514
// Arguments:
515-
// - instruction: the instruction to be canonicalized
515+
// - instruction: the instruction to be visited
516516
// Dumps:
517-
// - the function after the canonicalization is attempted
518-
static FunctionTest SILCombineCanonicalizeInstruction(
519-
"sil_combine_instruction", [](auto &function, auto &arguments, auto &test) {
517+
// - the function after the visitation is attempted
518+
static FunctionTest SILCombineVisitInstruction(
519+
"sil_combine_visit_instruction",
520+
[](auto &function, auto &arguments, auto &test) {
520521
SILCombiner combiner(test.getPass(), false, false);
521522
auto inst = arguments.takeInstruction();
522523
combiner.Builder.setInsertionPoint(inst);

test/SILOptimizer/sil_combine_apply_unit.sil

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ entry(%input : $*Input):
4040
%nunca = alloc_stack $Nunca
4141
%callee = function_ref @rdar127452206_callee : $@convention(thin) @Sendable @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0) -> (@out τ_0_2, @error_indirect τ_0_1) for <Input, Nunca, Output>
4242
%convert = convert_function %callee : $@convention(thin) @Sendable @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0) -> (@out τ_0_2, @error_indirect τ_0_1) for <Input, Nunca, Output> to $@convention(thin) @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0) -> (@out τ_0_2, @error_indirect τ_0_1) for <Input, Nunca, Output> // user: %216
43-
specify_test "sil_combine_instruction @instruction[4]"
43+
specify_test "sil_combine_visit_instruction @instruction[4]"
4444
apply [nothrow] %convert(%output, %nunca, %input) : $@convention(thin) @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0) -> (@out τ_0_2, @error_indirect τ_0_1) for <Input, Nunca, Output>
4545
dealloc_stack %nunca : $*Nunca
4646
dealloc_stack %output : $*Output
@@ -62,7 +62,7 @@ entry(%c : @owned $C):
6262
%borrowMaybeC = function_ref @borrowMaybeC : $@convention(thin) (@guaranteed Optional<C>) -> ()
6363
%borrowC = convert_function %borrowMaybeC : $@convention(thin) (@guaranteed Optional<C>) -> () to $@convention(thin) (@guaranteed C) -> ()
6464
%void = apply %borrowC(%c) : $@convention(thin) (@guaranteed C) -> ()
65-
specify_test "sil_combine_instruction %void"
65+
specify_test "sil_combine_visit_instruction %void"
6666
destroy_value %c : $C
6767
%retval = tuple ()
6868
return %retval : $()
@@ -89,7 +89,7 @@ entry(%c : @owned $C, %c2 : @owned $C):
8989
%borrowMaybeC2 = function_ref @borrowMaybeC2 : $@convention(thin) (@guaranteed Optional<C>, @guaranteed Optional<C>) -> ()
9090
%borrowC2 = convert_function %borrowMaybeC2 : $@convention(thin) (@guaranteed Optional<C>, @guaranteed Optional<C>) -> () to $@convention(thin) (@guaranteed C, @guaranteed C) -> ()
9191
%void = apply %borrowC2(%c, %c2) : $@convention(thin) (@guaranteed C, @guaranteed C) -> ()
92-
specify_test "sil_combine_instruction %void"
92+
specify_test "sil_combine_visit_instruction %void"
9393
destroy_value %c : $C
9494
destroy_value %c2 : $C
9595
%retval = tuple ()
@@ -116,7 +116,7 @@ sil [ossa] @convert_function__to_optional__owned_as_guaranteed__3 : $@convention
116116
entry(%c : @owned $C):
117117
%borrowMaybeC = function_ref @borrowMaybeCThrowing : $@convention(thin) (@guaranteed Optional<C>) -> (@error Error)
118118
%borrowC = convert_function %borrowMaybeC : $@convention(thin) (@guaranteed Optional<C>) -> (@error Error) to $@convention(thin) (@guaranteed C) -> (@error Error)
119-
specify_test "sil_combine_instruction @instruction"
119+
specify_test "sil_combine_visit_instruction @instruction"
120120
try_apply %borrowC(%c) : $@convention(thin) (@guaranteed C) -> (@error Error),
121121
normal success,
122122
error failure
@@ -160,7 +160,7 @@ sil [ossa] @convert_function__to_optional__owned_as_guaranteed__4 : $@convention
160160
entry(%c : @owned $C, %c2 : @owned $C):
161161
%borrowMaybeC2 = function_ref @borrowMaybeC2Throwing : $@convention(thin) (@guaranteed Optional<C>, @guaranteed Optional<C>) -> (@error Error)
162162
%borrowC2 = convert_function %borrowMaybeC2 : $@convention(thin) (@guaranteed Optional<C>, @guaranteed Optional<C>) -> (@error Error) to $@convention(thin) (@guaranteed C, @guaranteed C) -> (@error Error)
163-
specify_test "sil_combine_instruction @instruction"
163+
specify_test "sil_combine_visit_instruction @instruction"
164164
try_apply %borrowC2(%c, %c2) : $@convention(thin) (@guaranteed C, @guaranteed C) -> (@error Error),
165165
normal success,
166166
error failure

0 commit comments

Comments
 (0)