Skip to content

Commit 06bdd79

Browse files
committed
[Test] Underscored deleter_delete_if_dead.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent fb56178 commit 06bdd79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SILOptimizer/Utils/InstructionDeleter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ namespace swift::test {
335335
// Dumps:
336336
// - the function
337337
static FunctionTest DeleterDeleteIfDeadTest(
338-
"deleter-delete-if-dead", [](auto &function, auto &arguments, auto &test) {
338+
"deleter_delete_if_dead", [](auto &function, auto &arguments, auto &test) {
339339
auto *inst = arguments.takeInstruction();
340340
InstructionDeleter deleter;
341341
llvm::outs() << "Deleting-if-dead " << *inst;

test/SILOptimizer/instruction_deleter.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sil [ossa] @dontDeleteDeadMoveOnlyValue : $() -> () {
2727
%get = function_ref @getMOS : $@convention(thin) () -> (@owned MOS)
2828
%barrier = function_ref @barrier : $@convention(thin) () -> ()
2929
%mos = apply %get() : $@convention(thin) () -> (@owned MOS)
30-
specify_test "deleter-delete-if-dead @instruction"
30+
specify_test "deleter_delete_if_dead @instruction"
3131
%mov = move_value %mos : $MOS
3232
apply %barrier() : $@convention(thin) () -> ()
3333
destroy_value %mov : $MOS
@@ -50,7 +50,7 @@ sil [ossa] @doDeleteLoadTake : $() -> () {
5050
%stack = alloc_stack $C
5151
%get = function_ref @get : $@convention(thin) <T> () -> (@out T)
5252
apply %get<C>(%stack) : $@convention(thin) <T> () -> (@out T)
53-
specify_test "deleter-delete-if-dead @instruction"
53+
specify_test "deleter_delete_if_dead @instruction"
5454
%c = load [take] %stack : $*C
5555
destroy_value %c : $C
5656
dealloc_stack %stack : $*C

0 commit comments

Comments
 (0)