Skip to content

Commit fb66658

Browse files
authored
[AutoDiff] NFC: shorten test name. (swiftlang#31818)
differentiation_activity_analysis.swift -> activity_analysis.swift
1 parent 4841731 commit fb66658

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/AutoDiff/SILOptimizer/differentiation_activity_analysis.swift renamed to test/AutoDiff/SILOptimizer/activity_analysis.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ extension Mut {
289289
mutating func mutatingMethod(_ x: Mut) {}
290290
}
291291

292-
// CHECK-LABEL: [AD] Activity info for $s33differentiation_activity_analysis3MutV14mutatingMethodyyACF at (source=0 parameters=(0))
292+
// CHECK-LABEL: [AD] Activity info for ${{.*}}3MutV14mutatingMethodyyACF at (source=0 parameters=(0))
293293
// CHECK: [VARIED] %0 = argument of bb0 : $Mut
294294
// CHECK: [USEFUL] %1 = argument of bb0 : $*Mut
295295

@@ -301,7 +301,7 @@ func nonActiveInoutArg(_ nonactive: inout Mut, _ x: Mut) {
301301
nonactive = x
302302
}
303303

304-
// CHECK-LABEL: [AD] Activity info for $s33differentiation_activity_analysis17nonActiveInoutArgyyAA3MutVz_ADtF at (source=0 parameters=(1))
304+
// CHECK-LABEL: [AD] Activity info for ${{.*}}17nonActiveInoutArgyyAA3MutVz_ADtF at (source=0 parameters=(1))
305305
// CHECK: [ACTIVE] %0 = argument of bb0 : $*Mut
306306
// CHECK: [ACTIVE] %1 = argument of bb0 : $Mut
307307
// CHECK: [ACTIVE] %4 = begin_access [modify] [static] %0 : $*Mut
@@ -316,7 +316,7 @@ func activeInoutArgMutatingMethod(_ x: Mut) -> Mut {
316316
return result
317317
}
318318

319-
// CHECK-LABEL: [AD] Activity info for $s33differentiation_activity_analysis28activeInoutArgMutatingMethodyAA3MutVADF at (source=0 parameters=(0))
319+
// CHECK-LABEL: [AD] Activity info for ${{.*}}28activeInoutArgMutatingMethodyAA3MutVADF at (source=0 parameters=(0))
320320
// CHECK: [ACTIVE] %0 = argument of bb0 : $Mut
321321
// CHECK: [ACTIVE] %2 = alloc_stack $Mut, var, name "result"
322322
// CHECK: [ACTIVE] %4 = begin_access [read] [static] %2 : $*Mut
@@ -334,14 +334,14 @@ func activeInoutArgMutatingMethodVar(_ nonactive: inout Mut, _ x: Mut) {
334334
nonactive = result
335335
}
336336

337-
// CHECK_LABEL: [AD] Activity info for $s33differentiation_activity_analysis31activeInoutArgMutatingMethodVaryyAA3MutVz_ADtF at (source=0 parameters=(1))
337+
// CHECK_LABEL: [AD] Activity info for ${{.*}}31activeInoutArgMutatingMethodVaryyAA3MutVz_ADtF at (source=0 parameters=(1))
338338
// CHECK: [ACTIVE] %0 = argument of bb0 : $*Mut
339339
// CHECK: [ACTIVE] %1 = argument of bb0 : $Mut
340340
// CHECK: [ACTIVE] %4 = alloc_stack $Mut, var, name "result"
341341
// CHECK: [ACTIVE] %5 = begin_access [read] [static] %0 : $*Mut
342342
// CHECK: [ACTIVE] %8 = begin_access [modify] [static] %4 : $*Mut
343343
// CHECK: [NONE] // function_ref Mut.mutatingMethod(_:)
344-
// CHECK: %9 = function_ref @$s33differentiation_activity_analysis3MutV14mutatingMethodyyACF : $@convention(method) (Mut, @inout Mut) -> ()
344+
// CHECK: %9 = function_ref @${{.*}}3MutV14mutatingMethodyyACF : $@convention(method) (Mut, @inout Mut) -> ()
345345
// CHECK: [NONE] %10 = apply %9(%1, %8) : $@convention(method) (Mut, @inout Mut) -> ()
346346
// CHECK: [ACTIVE] %12 = begin_access [read] [static] %4 : $*Mut
347347
// CHECK: [ACTIVE] %13 = load [trivial] %12 : $*Mut
@@ -355,7 +355,7 @@ func activeInoutArgMutatingMethodTuple(_ nonactive: inout Mut, _ x: Mut) {
355355
nonactive = result.0
356356
}
357357

358-
// CHECK-LABEL: [AD] Activity info for $s33differentiation_activity_analysis33activeInoutArgMutatingMethodTupleyyAA3MutVz_ADtF at (source=0 parameters=(1))
358+
// CHECK-LABEL: [AD] Activity info for ${{.*}}33activeInoutArgMutatingMethodTupleyyAA3MutVz_ADtF at (source=0 parameters=(1))
359359
// CHECK: [ACTIVE] %0 = argument of bb0 : $*Mut
360360
// CHECK: [ACTIVE] %1 = argument of bb0 : $Mut
361361
// CHECK: [ACTIVE] %4 = alloc_stack $(Mut, Mut), var, name "result"
@@ -466,7 +466,7 @@ func testAccessorCoroutines(_ x: HasCoroutineAccessors) -> HasCoroutineAccessors
466466
// CHECK: [ACTIVE] %11 = load [trivial] %9 : $*Float
467467
// CHECK: [ACTIVE] %14 = begin_access [modify] [static] %2 : $*HasCoroutineAccessors
468468
// CHECK: [NONE] // function_ref HasCoroutineAccessors.computed.modify
469-
// CHECK: %15 = function_ref @$s33differentiation_activity_analysis21HasCoroutineAccessorsV8computedSfvM : $@yield_once @convention(method) (@inout HasCoroutineAccessors) -> @yields @inout Float
469+
// CHECK: %15 = function_ref @${{.*}}21HasCoroutineAccessorsV8computedSfvM : $@yield_once @convention(method) (@inout HasCoroutineAccessors) -> @yields @inout Float
470470
// CHECK: [ACTIVE] (**%16**, %17) = begin_apply %15(%14) : $@yield_once @convention(method) (@inout HasCoroutineAccessors) -> @yields @inout Float
471471
// CHECK: [VARIED] (%16, **%17**) = begin_apply %15(%14) : $@yield_once @convention(method) (@inout HasCoroutineAccessors) -> @yields @inout Float
472472
// CHECK: [ACTIVE] %22 = begin_access [read] [static] %2 : $*HasCoroutineAccessors

0 commit comments

Comments
 (0)