1
- // RUN: %target-swift-frontend -O -emit-sil -enforce-exclusivity=unchecked %s | %FileCheck %s
2
- // RUN: %target-swift-frontend -O -wmo -emit-sil -enforce-exclusivity=unchecked %s | %FileCheck -check-prefix=CHECK-WMO %s
3
- // RUN: %target-swift-frontend -parse-as-library -O -emit-sil -enforce-exclusivity=unchecked %s | %FileCheck %s
4
- // RUN: %target-swift-frontend -parse-as-library -O -wmo -emit-sil -enforce-exclusivity=unchecked %s | %FileCheck -check-prefix=CHECK-WMO %s
1
+ // RUN: %target-swift-frontend -O -emit-sil %s | %FileCheck %s
2
+ // RUN: %target-swift-frontend -O -wmo -emit-sil %s | %FileCheck -check-prefix=CHECK-WMO %s
3
+ // RUN: %target-swift-frontend -parse-as-library -O -emit-sil %s | %FileCheck %s
4
+ // RUN: %target-swift-frontend -parse-as-library -O -wmo -emit-sil %s | %FileCheck -check-prefix=CHECK-WMO %s
5
5
6
6
// Check that values of internal and private global variables, which are provably assigned only
7
7
// once, are propagated into their uses and enable further optimizations like constant
@@ -93,6 +93,7 @@ public func test_internal_global_var_int() -> Int {
93
93
// CHECK-WMO-LABEL: sil [noinline] @$s28globalopt_global_propagation012test_public_B11_var_doubleSdyF
94
94
// CHECK-WMO: bb0:
95
95
// CHECK-WMO-NEXT: global_addr
96
+ // CHECK-WMO-NEXT: begin_access [read] [dynamic]
96
97
// CHECK-WMO-NEXT: struct_element_addr
97
98
// CHECK-WMO-NEXT: load
98
99
@inline ( never)
@@ -105,6 +106,7 @@ public func test_public_global_var_double() -> Double {
105
106
// CHECK-LABEL: sil [noinline] @$s28globalopt_global_propagation012test_public_B8_var_intSiyF
106
107
// CHECK: bb0:
107
108
// CHECK-NEXT: global_addr
109
+ // CHECK-NEXT: begin_access [read] [dynamic]
108
110
// CHECK-NEXT: struct_element_addr
109
111
// CHECK-NEXT: load
110
112
@inline ( never)
0 commit comments