@@ -89,7 +89,7 @@ bb0(%0 : $Int32, %1 : $*Int32, %2 : $*Int32):
89
89
// CHECK-LABEL: @call_store_to_int_not_aliased
90
90
// CHECK: PAIR #0.
91
91
// CHECK-NEXT: %4 = apply %3(%0, %1) : $@convention(thin) (Int32, @inout Int32) -> ()
92
- // CHECK-NEXT: %1 = argument of bb0 : $*Int32{{.*}} // user: %4
92
+ // CHECK-NEXT: %1 = argument of bb0 : $*Int32{{.*}}
93
93
// CHECK-NEXT: r=0,w=1
94
94
// CHECK: PAIR #1.
95
95
// CHECK-NEXT: %4 = apply %3(%0, %1) : $@convention(thin) (Int32, @inout Int32) -> ()
@@ -107,7 +107,7 @@ bb0(%0 : $Int32, %1 : $*Int32, %2 : $*Int32):
107
107
// CHECK-LABEL: @call_store_to_int_aliased
108
108
// CHECK: PAIR #0.
109
109
// CHECK-NEXT: %6 = apply %5(%0, %3) : $@convention(thin) (Int32, @inout Int32) -> ()
110
- // CHECK-NEXT: %3 = ref_element_addr %1 : $X, #X.a{{.*}} // user: %6
110
+ // CHECK-NEXT: %3 = ref_element_addr %1 : $X, #X.a{{.*}}
111
111
// CHECK-NEXT: r=0,w=1
112
112
// CHECK: PAIR #1.
113
113
// CHECK-NEXT: %6 = apply %5(%0, %3) : $@convention(thin) (Int32, @inout Int32) -> ()
@@ -184,15 +184,15 @@ bb0(%0 : $X, %1 : $X):
184
184
// CHECK-LABEL: @allocstack_apply_no_side_effect
185
185
// CHECK: PAIR #0
186
186
// CHECK-NEXT: %3 = apply %2() : $@convention(thin) () -> ()
187
- // CHECK-NEXT: %1 = alloc_stack $Int32{{.*}} // user: %5
187
+ // CHECK-NEXT: %1 = alloc_stack $Int32{{.*}}
188
188
// CHECK-NEXT: r=0,w=0
189
189
sil @allocstack_apply_no_side_effect : $@convention(thin) (Int32) -> () {
190
190
bb0(%0 : $Int32):
191
- %1 = alloc_stack $Int32 // user: %5
192
- %2 = function_ref @nouser_func : $@convention(thin) () -> () // user: %3
191
+ %1 = alloc_stack $Int32
192
+ %2 = function_ref @nouser_func : $@convention(thin) () -> ()
193
193
%3 = apply %2() : $@convention(thin) () -> ()
194
- %4 = tuple () // user: %6
195
- dealloc_stack %1 : $*Int32 // id: %5
194
+ %4 = tuple ()
195
+ dealloc_stack %1 : $*Int32
196
196
return %4 : $()
197
197
}
198
198
@@ -203,30 +203,30 @@ bb0(%0 : $Int32):
203
203
// CHECK-NEXT: r=0,w=1
204
204
sil @allocstack_apply_side_effect : $@convention(thin) (Int32) -> () {
205
205
bb0(%0 : $Int32):
206
- %1 = alloc_stack $Int32 // users: %3, %5
206
+ %1 = alloc_stack $Int32
207
207
// function_ref store_to_int
208
- %2 = function_ref @store_to_int : $@convention(thin) (Int32, @inout Int32) -> () // user: %3
208
+ %2 = function_ref @store_to_int : $@convention(thin) (Int32, @inout Int32) -> ()
209
209
%3 = apply %2(%0, %1) : $@convention(thin) (Int32, @inout Int32) -> ()
210
- %4 = tuple () // user: %6
211
- dealloc_stack %1 : $*Int32 // id: %5
212
- return %4 : $() // id: %6
210
+ %4 = tuple ()
211
+ dealloc_stack %1 : $*Int32
212
+ return %4 : $()
213
213
}
214
214
215
215
// CHECK-LABEL: @allocstack_apply_no_escaping
216
216
// CHECK: PAIR #0.
217
217
// CHECK-NEXT: %3 = apply %2() : $@convention(thin) () -> ()
218
- // CHECK-NEXT: %1 = alloc_stack $Int32{{.*}} // users: %7, %5
218
+ // CHECK-NEXT: %1 = alloc_stack $Int32{{.*}}
219
219
// CHECK-NEXT: r=0,w=0
220
220
sil @allocstack_apply_no_escaping : $@convention(thin) (Int32) -> () {
221
221
bb0(%0 : $Int32):
222
- %1 = alloc_stack $Int32 // users: %3, %5
223
- %2 = function_ref @nouser_func : $@convention(thin) () -> () // user: %3
222
+ %1 = alloc_stack $Int32
223
+ %2 = function_ref @nouser_func : $@convention(thin) () -> ()
224
224
%3 = apply %2() : $@convention(thin) () -> ()
225
- %4 = function_ref @store_to_int: $@convention(thin) (Int32, @inout Int32) -> () // user: %3
225
+ %4 = function_ref @store_to_int: $@convention(thin) (Int32, @inout Int32) -> ()
226
226
%5 = apply %4(%0, %1) : $@convention(thin) (Int32, @inout Int32) -> ()
227
- %6 = tuple () // user: %6
228
- dealloc_stack %1 : $*Int32 // id: %5
229
- return %6 : $() // id: %6
227
+ %6 = tuple ()
228
+ dealloc_stack %1 : $*Int32
229
+ return %6 : $()
230
230
}
231
231
232
232
// CHECK-LABEL: @allocstack_apply_read_only
@@ -303,8 +303,8 @@ bb0(%0 : $*Int32):
303
303
304
304
// CHECK-LABEL: @escaping_allocstack_to_known_function
305
305
// CHECK: PAIR #2.
306
- // CHECK-NEXT: %5 = apply %4(%3) : $@convention(thin) (Builtin.RawPointer) -> UInt8 // user: %7
307
- // CHECK-NEXT: %1 = alloc_stack $UInt8 // users: %6, %3, %2
306
+ // CHECK-NEXT: %5 = apply %4(%3) : $@convention(thin) (Builtin.RawPointer) -> UInt8
307
+ // CHECK-NEXT: %1 = alloc_stack $UInt8
308
308
// CHECK-NEXT: r=1,w=0
309
309
sil @escaping_allocstack_to_known_function : $@convention(thin) (UInt8) -> UInt8 {
310
310
bb0(%0 : $UInt8):
@@ -836,7 +836,7 @@ sil hidden @testGlobalLet : $@convention(thin) () -> () {
836
836
bb0:
837
837
%0 = global_addr @globalC : $*C
838
838
%1 = load %0 : $*C
839
- %2 = function_ref @nouser_func : $@convention(thin) () -> () // user: %3
839
+ %2 = function_ref @nouser_func : $@convention(thin) () -> ()
840
840
%3 = apply %2() : $@convention(thin) () -> ()
841
841
%8 = tuple ()
842
842
return %8 : $()
@@ -851,7 +851,7 @@ sil hidden @testGlobalVar : $@convention(thin) () -> () {
851
851
bb0:
852
852
%0 = global_addr @globalCVar : $*C
853
853
%1 = load %0 : $*C
854
- %2 = function_ref @nouser_func : $@convention(thin) () -> () // user: %3
854
+ %2 = function_ref @nouser_func : $@convention(thin) () -> ()
855
855
%3 = apply %2() : $@convention(thin) () -> ()
856
856
%8 = tuple ()
857
857
return %8 : $()
@@ -890,8 +890,8 @@ struct Int64Wrapper {
890
890
891
891
// CHECK-LABEL: @testNestedAccessWithInterposedProjection
892
892
// CHECK: PAIR #2.
893
- // CHECK-NEXT: %1 = begin_access [modify] [static] %0 : $*Int64Wrapper // users: %7, %2
894
- // CHECK-NEXT: %3 = begin_access [read] [static] %2 : $*Int64 // users: %6, %4
893
+ // CHECK-NEXT: %1 = begin_access [modify] [static] %0 : $*Int64Wrapper
894
+ // CHECK-NEXT: %3 = begin_access [read] [static] %2 : $*Int64
895
895
// CHECK-NEXT: r=1,w=1
896
896
sil @testNestedAccessWithInterposedProjection : $@convention(thin) (@inout Int64Wrapper) -> () {
897
897
bb0(%0 : $*Int64Wrapper):
@@ -1246,7 +1246,7 @@ bb0:
1246
1246
// CHECK-LABEL: @test_stored_pointer
1247
1247
// CHECK: PAIR #3.
1248
1248
// CHECK-NEXT: %5 = apply %4(%2) : $@convention(thin) (@in Builtin.RawPointer) -> ()
1249
- // CHECK-NEXT: %0 = alloc_stack $Int // users: %7, %1
1249
+ // CHECK-NEXT: %0 = alloc_stack $Int
1250
1250
// CHECK-NEXT: r=1,w=1
1251
1251
sil @test_stored_pointer : $@convention(thin) () -> () {
1252
1252
bb0:
0 commit comments