|
1 | 1 | // RUN: %target-swift-frontend %s -emit-sil \ |
| 2 | +// RUN: -Xllvm -sil-print-after=lifetime-dependence-insertion \ |
2 | 3 | // RUN: -sil-verify-all \ |
3 | 4 | // RUN: -module-name test \ |
4 | 5 | // RUN: -disable-experimental-parser-round-trip \ |
5 | 6 | // RUN: -enable-experimental-feature NonescapableTypes \ |
6 | | -// RUN: -Xllvm -enable-lifetime-dependence-insertion \ |
7 | | -// RUN: 2>&1 | %FileCheck %s |
| 7 | +// RUN: -o /dev/null 2>&1 | %FileCheck %s |
8 | 8 |
|
9 | 9 | // REQUIRES: asserts |
10 | 10 | // REQUIRES: swift_in_compiler |
@@ -34,13 +34,15 @@ struct NC : ~Copyable { |
34 | 34 | @_silgen_name("use") |
35 | 35 | func use(_ o : borrowing BV) |
36 | 36 |
|
37 | | -// CHECK-LABEL: sil hidden @$s4test13bv_borrow_var1p1iySV_SitF : $@convention(thin) (UnsafeRawPointer, Int) -> () { |
38 | | -// CHECK: [[A:%.*]] = begin_access [read] [static] %{{.*}} : $*NC |
39 | | -// CHECK: [[L:%.*]] = load [[A]] : $*NC |
| 37 | +// CHECK-LABEL: sil hidden [ossa] @$s4test13bv_borrow_var1p1iySV_SitF : $@convention(thin) (UnsafeRawPointer, Int) -> () { |
| 38 | +// CHECK: [[A:%.*]] = begin_access [read] [unknown] %{{.*}} : $*NC |
| 39 | +// CHECK: [[U:%.*]] = mark_unresolved_non_copyable_value [no_consume_or_assign] [[A]] : $*NC |
| 40 | +// CHECK: [[L:%.*]] = load [copy] [[U]] : $*NC |
40 | 41 | // CHECK: [[R:%.*]] = apply %{{.*}}([[L]]) : $@convention(method) (@guaranteed NC) -> _scope(0) @owned BV |
41 | 42 | // CHECK: [[M:%.*]] = mark_dependence [unresolved] [[R]] : $BV on [[A]] : $*NC |
42 | 43 | // CHECK: end_access [[A]] : $*NC |
43 | | -// CHECK: %{{.*}} = apply %{{.*}}([[M]]) : $@convention(thin) (@guaranteed BV) -> () |
| 44 | +// CHECK: [[MV:%.*]] = move_value [var_decl] [[M]] : $BV |
| 45 | +// CHECK: %{{.*}} = apply %{{.*}}([[MV]]) : $@convention(thin) (@guaranteed BV) -> () |
44 | 46 | // CHECK-LABEL: } // end sil function '$s4test13bv_borrow_var1p1iySV_SitF' |
45 | 47 | func bv_borrow_var(p: UnsafeRawPointer, i: Int) { |
46 | 48 | var nc = NC(p: p, i: i) |
|
0 commit comments