Skip to content

Commit 41c0cf6

Browse files
committed
ownership_liveness unit tests
1 parent 198f1af commit 41c0cf6

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/BorrowUtils.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,6 @@ private struct EnclosingValues {
809809
let borrowIntroducersTest = FunctionTest("borrow_introducers") {
810810
function, arguments, context in
811811
let value = arguments.takeValue()
812-
print(function)
813812
print("Borrow introducers for: \(value)")
814813
var introducers = Stack<Value>(context)
815814
defer {
@@ -822,7 +821,6 @@ let borrowIntroducersTest = FunctionTest("borrow_introducers") {
822821
let enclosingValuesTest = FunctionTest("enclosing_values") {
823822
function, arguments, context in
824823
let value = arguments.takeValue()
825-
print(function)
826824
print("Enclosing values for: \(value)")
827825
var enclosing = Stack<Value>(context)
828826
defer {

SwiftCompilerSources/Sources/Optimizer/Utilities/OwnershipLiveness.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,6 @@ struct LivenessBoundary : CustomStringConvertible {
835835
let linearLivenessTest = FunctionTest("linear_liveness_swift") {
836836
function, arguments, context in
837837
let value = arguments.takeValue()
838-
print(function)
839838
print("Linear liveness: \(value)")
840839
var range = computeLinearLiveness(for: value, context)
841840
defer { range.deinitialize() }
@@ -849,7 +848,6 @@ let linearLivenessTest = FunctionTest("linear_liveness_swift") {
849848
let interiorLivenessTest = FunctionTest("interior_liveness_swift") {
850849
function, arguments, context in
851850
let value = arguments.takeValue()
852-
print(function)
853851
print("Interior liveness: \(value)")
854852

855853
var range = InstructionRange(for: value, context)

test/SILOptimizer/ownership_liveness_unit.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ case some(T)
1818
class C {}
1919
class D {
2020
var object: C
21-
@_borrowed @_hasStorage var borrowed: C { get set }
2221
}
2322

2423
struct PairC {
@@ -307,7 +306,6 @@ bb1(%reborrow : @guaranteed $C):
307306
}
308307

309308
// CHECK-LABEL: testInteriorNondominatedReborrow: interior_liveness_swift with: %borrow1
310-
// CHECK-LABEL: sil [ossa] @testInteriorNondominatedReborrow : $@convention(thin) (@guaranteed C) -> () {
311309
// CHECK: Interior liveness: %{{.*}} = begin_borrow %0 : $C
312310
// CHECK-NEXT: begin: %{{.*}} = begin_borrow %0 : $C
313311
// CHECK-NEXT: ends: br bb1(%{{.*}} : $C, %{{.*}} : $D)
@@ -333,7 +331,6 @@ bb3(%reborrow1 : @guaranteed $C, %reborrow2 : @guaranteed $D):
333331
}
334332

335333
// CHECK-LABEL: testInteriorDominatedReborrow: interior_liveness_swift with: %borrow1
336-
// CHECK: sil [ossa] @testInteriorDominatedReborrow : $@convention(thin) (@guaranteed C) -> () {
337334
// CHECK: Interior liveness: %{{.*}} = begin_borrow %0 : $C
338335
// CHECK-NEXT: begin: %{{.*}} = begin_borrow %0 : $C
339336
// CHECK-NEXT: ends: end_borrow %{{.*}} : $C

0 commit comments

Comments
 (0)