@@ -9,7 +9,7 @@ declare void @reference_function_pointer(ptr) nofree nosync readnone
9
9
; and the RefSCCs that those functions are in, we re-run the CGSCC passes to
10
10
; observe the refined call graph structure.
11
11
12
- ; CHECK: define void @test1_a() {
12
+ ; CHECK: define void @test1_a() #1 {
13
13
define void @test1_a () {
14
14
call void @test1_b1 ()
15
15
call void @test1_b2 ()
@@ -128,7 +128,7 @@ exit:
128
128
; multiple layers that have to be traversed in the correct order instead of
129
129
; a single node.
130
130
131
- ; CHECK: define void @test3_a() {
131
+ ; CHECK: define void @test3_a() #1 {
132
132
define void @test3_a () {
133
133
call void @test3_b11 ()
134
134
call void @test3_b21 ()
@@ -137,13 +137,13 @@ define void @test3_a() {
137
137
ret void
138
138
}
139
139
140
- ; CHECK: define void @test3_b11() #0 {
140
+ ; CHECK: define void @test3_b11() #2 {
141
141
define void @test3_b11 () {
142
142
call void @test3_b12 ()
143
143
ret void
144
144
}
145
145
146
- ; CHECK: define void @test3_b12() #0 {
146
+ ; CHECK: define void @test3_b12() #2 {
147
147
define void @test3_b12 () {
148
148
call void @test3_b13 ()
149
149
ret void
@@ -155,13 +155,13 @@ define void @test3_b13() {
155
155
ret void
156
156
}
157
157
158
- ; CHECK: define void @test3_b21() #0 {
158
+ ; CHECK: define void @test3_b21() #2 {
159
159
define void @test3_b21 () {
160
160
call void @test3_b22 ()
161
161
ret void
162
162
}
163
163
164
- ; CHECK: define void @test3_b22() #0 {
164
+ ; CHECK: define void @test3_b22() #2 {
165
165
define void @test3_b22 () {
166
166
call void @test3_b23 ()
167
167
ret void
@@ -180,13 +180,13 @@ exit:
180
180
ret void
181
181
}
182
182
183
- ; CHECK: define void @test3_b31() {
183
+ ; CHECK: define void @test3_b31() #1 {
184
184
define void @test3_b31 () {
185
185
call void @test3_b32 ()
186
186
ret void
187
187
}
188
188
189
- ; CHECK: define void @test3_b32() {
189
+ ; CHECK: define void @test3_b32() #1 {
190
190
define void @test3_b32 () {
191
191
call void @test3_b33 ()
192
192
ret void
@@ -205,13 +205,13 @@ exit:
205
205
ret void
206
206
}
207
207
208
- ; CHECK: define void @test3_b41() #0 {
208
+ ; CHECK: define void @test3_b41() #2 {
209
209
define void @test3_b41 () {
210
210
call void @test3_b42 ()
211
211
ret void
212
212
}
213
213
214
- ; CHECK: define void @test3_b42() #0 {
214
+ ; CHECK: define void @test3_b42() #2 {
215
215
define void @test3_b42 () {
216
216
call void @test3_b43 ()
217
217
ret void
@@ -244,13 +244,13 @@ define void @test4_a() {
244
244
ret void
245
245
}
246
246
247
- ; CHECK: define void @test4_b11() #0 {
247
+ ; CHECK: define void @test4_b11() #2 {
248
248
define void @test4_b11 () {
249
249
call void @test4_b12 ()
250
250
ret void
251
251
}
252
252
253
- ; CHECK: define void @test4_b12() #0 {
253
+ ; CHECK: define void @test4_b12() #2 {
254
254
define void @test4_b12 () {
255
255
call void @test4_b13 ()
256
256
ret void
@@ -262,20 +262,20 @@ define void @test4_b13() {
262
262
ret void
263
263
}
264
264
265
- ; CHECK: define void @test4_b21() #0 {
265
+ ; CHECK: define void @test4_b21() #2 {
266
266
define void @test4_b21 () {
267
267
call void @test4_b22 ()
268
268
ret void
269
269
}
270
270
271
- ; CHECK: define void @test4_b22() #0 {
271
+ ; CHECK: define void @test4_b22() #2 {
272
272
define void @test4_b22 () {
273
273
call void @test4_b23 ()
274
274
ret void
275
275
}
276
276
277
277
; CHECK: define void @test4_b23() #0 {
278
- define void @test4_b23 () {
278
+ define void @test4_b23 () # 0 {
279
279
call void @reference_function_pointer (ptr @test4_a )
280
280
br i1 false , label %dead , label %exit
281
281
@@ -287,13 +287,13 @@ exit:
287
287
ret void
288
288
}
289
289
290
- ; CHECK: define void @test4_b31() {
290
+ ; CHECK: define void @test4_b31() #1 {
291
291
define void @test4_b31 () {
292
292
call void @test4_b32 ()
293
293
ret void
294
294
}
295
295
296
- ; CHECK: define void @test4_b32() {
296
+ ; CHECK: define void @test4_b32() #1 {
297
297
define void @test4_b32 () {
298
298
call void @test4_b33 ()
299
299
ret void
@@ -313,13 +313,13 @@ exit:
313
313
ret void
314
314
}
315
315
316
- ; CHECK: define void @test4_b41() #0 {
316
+ ; CHECK: define void @test4_b41() #2 {
317
317
define void @test4_b41 () {
318
318
call void @test4_b42 ()
319
319
ret void
320
320
}
321
321
322
- ; CHECK: define void @test4_b42() #0 {
322
+ ; CHECK: define void @test4_b42() #2 {
323
323
define void @test4_b42 () {
324
324
call void @test4_b43 ()
325
325
ret void
@@ -339,3 +339,5 @@ exit:
339
339
}
340
340
341
341
; CHECK: attributes #0 = { nofree nosync memory(none) }
342
+ ; CHECK: attributes #1 = { norecurse }
343
+ ; CHECK: attributes #2 = { nofree norecurse nosync memory(none) }
0 commit comments