@@ -34,7 +34,7 @@ sil [ossa] [transparent] @partial_apply_on_stack_nesting_violator : $@convention
34
34
35
35
// Verify that when inlining partial_apply_on_stack_nesting_violator, the stack
36
36
// nesting of the on_stack closures is fixed.
37
- // CHECK-LABEL: sil [no_locks] @test_inline_stack_violating_ossa_func : {{.*}} {
37
+ // CHECK-LABEL: sil [no_locks] [perf_constraint] @test_inline_stack_violating_ossa_func : {{.*}} {
38
38
// CHECK: [[PAABLE:%[^,]+]] = function_ref @paable
39
39
// CHECK: [[FIRST:%[^,]+]] = partial_apply [callee_guaranteed] [on_stack] [[PAABLE]]
40
40
// CHECK: [[SECOND:%[^,]+]] = partial_apply [callee_guaranteed] [on_stack] [[PAABLE]]
@@ -48,7 +48,7 @@ sil [no_locks] @test_inline_stack_violating_ossa_func : $@convention(thin) () ->
48
48
return %retval : $()
49
49
}
50
50
51
- // CHECK-LABEL: sil hidden [no_allocation] [ossa] @moved_pai : {{.*}} {
51
+ // CHECK-LABEL: sil hidden [no_allocation] [perf_constraint] [ ossa] @moved_pai : {{.*}} {
52
52
// CHECK-NOT: partial_apply
53
53
// CHECK-LABEL: } // end sil function 'moved_pai'
54
54
sil hidden [no_allocation] [ossa] @moved_pai : $@convention(thin) () -> Builtin.Int64 {
69
69
return %retval : $Builtin.Int64
70
70
}
71
71
72
- // CHECK-LABEL: sil [no_allocation] @deserialize_and_inline_after_devirtualize
72
+ // CHECK-LABEL: sil [no_allocation] [perf_constraint] @deserialize_and_inline_after_devirtualize
73
73
// CHECK-NOT: apply
74
74
// CHECK: } // end sil function 'deserialize_and_inline_after_devirtualize'
75
75
sil [no_allocation] @deserialize_and_inline_after_devirtualize : $@convention(thin) (@in Int) -> () {
@@ -81,7 +81,7 @@ bb0(%0 : $*Int):
81
81
return %4 : $()
82
82
}
83
83
84
- // CHECK-LABEL: sil [no_allocation] [ossa] @memopt_and_dead_alloc
84
+ // CHECK-LABEL: sil [no_allocation] [perf_constraint] [ ossa] @memopt_and_dead_alloc
85
85
// CHECK-NOT: alloc_stack
86
86
// CHECK-NOT: load
87
87
// CHECK: return %0
@@ -95,7 +95,7 @@ bb0(%0 : $Builtin.Int32):
95
95
return %2 : $Builtin.Int32
96
96
}
97
97
98
- // CHECK-LABEL: sil [no_allocation] @dont_do_dead_alloc_elimination_on_non_ossa
98
+ // CHECK-LABEL: sil [no_allocation] [perf_constraint] @dont_do_dead_alloc_elimination_on_non_ossa
99
99
// CHECK: alloc_stack
100
100
// CHECK-NOT: load
101
101
// CHECK: return %0
@@ -109,7 +109,7 @@ bb0(%0 : $Builtin.Int32):
109
109
return %2 : $Builtin.Int32
110
110
}
111
111
112
- // CHECK-LABEL: sil [no_allocation] @dead_metatype :
112
+ // CHECK-LABEL: sil [no_allocation] [perf_constraint] @dead_metatype :
113
113
// CHECK-NOT: metatype
114
114
// CHECK-NOT: debug_value
115
115
// CHECK: } // end sil function 'dead_metatype'
139
139
return %1 : $Int32
140
140
}
141
141
142
- // CHECK-LABEL: sil [global_init_once_fn] [no_locks] @globalinit_inline_into_init :
142
+ // CHECK-LABEL: sil [global_init_once_fn] [no_locks] [perf_constraint] @globalinit_inline_into_init :
143
143
// CHECK-NOT: apply
144
144
// CHECK: } // end sil function 'globalinit_inline_into_init'
145
145
sil [global_init_once_fn] [no_locks] @globalinit_inline_into_init : $@convention(c) () -> () {
153
153
return %6 : $()
154
154
}
155
155
156
- // CHECK-LABEL: sil [serialized] [global_init_once_fn] [no_locks] @globalinit_dont_inline_non_inlinable_into_inlinable :
156
+ // CHECK-LABEL: sil [serialized] [global_init_once_fn] [no_locks] [perf_constraint] @globalinit_dont_inline_non_inlinable_into_inlinable :
157
157
// CHECK: apply
158
158
// CHECK: } // end sil function 'globalinit_dont_inline_non_inlinable_into_inlinable'
159
159
sil [serialized] [global_init_once_fn] [no_locks] @globalinit_dont_inline_non_inlinable_into_inlinable : $@convention(c) () -> () {
179
179
unwind
180
180
}
181
181
182
- // CHECK-LABEL: sil [no_locks] @inline_begin_apply :
182
+ // CHECK-LABEL: sil [no_locks] [perf_constraint] @inline_begin_apply :
183
183
// CHECK-NOT: begin_apply
184
184
// CHECK: } // end sil function 'inline_begin_apply'
185
185
sil [no_locks] @inline_begin_apply : $@convention(thin) () -> Int32 {
190
190
return %1 : $Int32
191
191
}
192
192
193
- // CHECK-LABEL: sil [no_locks] @dont_inline_begin_apply :
193
+ // CHECK-LABEL: sil [no_locks] [perf_constraint] @dont_inline_begin_apply :
194
194
// CHECK: begin_apply
195
195
// CHECK: } // end sil function 'dont_inline_begin_apply'
196
196
sil [no_locks] @dont_inline_begin_apply : $@convention(thin) () -> Int32 {
208
208
return %1 : $Int32
209
209
}
210
210
211
- // CHECK-LABEL: sil [no_locks] [ossa] @remove_metatype_arg :
211
+ // CHECK-LABEL: sil [no_locks] [perf_constraint] [ ossa] @remove_metatype_arg :
212
212
// CHECK: [[F:%.*]] = function_ref @$s12metatype_argTf4dnn_n : $@convention(thin) (Int, @owned Builtin.NativeObject) -> @owned Builtin.NativeObject
213
213
// CHECK: [[A:%.*]] = apply [[F]](%0, %1) : $@convention(thin) (Int, @owned Builtin.NativeObject) -> @owned Builtin.NativeObject
214
214
// CHECK: return [[A]]
@@ -228,7 +228,7 @@ bb0(%0 : $Int, %1 : $@thick Int.Type, %2 : @owned $Builtin.NativeObject):
228
228
return %2 : $Builtin.NativeObject
229
229
}
230
230
231
- // CHECK-LABEL: sil [no_locks] [ossa] @remove_metatype_arg_throws :
231
+ // CHECK-LABEL: sil [no_locks] [perf_constraint] [ ossa] @remove_metatype_arg_throws :
232
232
// CHECK: [[F:%.*]] = function_ref @$s19metatype_arg_throwsTf4dnn_n : $@convention(thin) (Int, @owned Builtin.NativeObject) -> (@owned Builtin.NativeObject, @error any Error)
233
233
// CHECK: try_apply [[F]](%0, %1) : $@convention(thin) (Int, @owned Builtin.NativeObject) -> (@owned Builtin.NativeObject, @error any Error), normal bb1, error bb2
234
234
// CHECK: bb1([[R:%.*]] : @owned $Builtin.NativeObject):
@@ -256,14 +256,14 @@ bb0(%0 : $Int, %1 : $@thick Int.Type, %2 : @owned $Builtin.NativeObject):
256
256
return %2 : $Builtin.NativeObject
257
257
}
258
258
259
- // CHECK-LABEL: sil [ossa] @$s12metatype_argTf4dnn_n : $@convention(thin) (Int, @owned Builtin.NativeObject) -> @owned Builtin.NativeObject {
259
+ // CHECK-LABEL: sil [perf_constraint] [ ossa] @$s12metatype_argTf4dnn_n : $@convention(thin) (Int, @owned Builtin.NativeObject) -> @owned Builtin.NativeObject {
260
260
// CHECK: bb0(%0 : $Int, %1 : @owned $Builtin.NativeObject):
261
261
// CHECK: %2 = metatype $@thick Int.Type
262
262
// CHECK: fix_lifetime %2 : $@thick Int.Type
263
263
// CHECK: return %1 : $Builtin.NativeObject
264
264
// CHECK: } // end sil function '$s12metatype_argTf4dnn_n'
265
265
266
- // CHECK-LABEL: sil [ossa] @$s19metatype_arg_throwsTf4dnn_n : $@convention(thin) (Int, @owned Builtin.NativeObject) -> (@owned Builtin.NativeObject, @error any Error) {
266
+ // CHECK-LABEL: sil [perf_constraint] [ ossa] @$s19metatype_arg_throwsTf4dnn_n : $@convention(thin) (Int, @owned Builtin.NativeObject) -> (@owned Builtin.NativeObject, @error any Error) {
267
267
// CHECK: bb0(%0 : $Int, %1 : @owned $Builtin.NativeObject):
268
268
// CHECK: %2 = metatype $@thick Int.Type
269
269
// CHECK: fix_lifetime %2 : $@thick Int.Type
0 commit comments