@@ -34,7 +34,7 @@ define i32 @test(i32* nocapture %f) #0 {
34
34
; UNROLL: pred.store.continue3:
35
35
; UNROLL-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
36
36
; UNROLL-NEXT: [[TMP8:%.*]] = icmp eq i64 [[INDEX_NEXT]], 128
37
- ; UNROLL-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !0
37
+ ; UNROLL-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP0: !llvm.loop !.*]]
38
38
; UNROLL: middle.block:
39
39
; UNROLL-NEXT: [[CMP_N:%.*]] = icmp eq i64 128, 128
40
40
; UNROLL-NEXT: br i1 [[CMP_N]], label [[FOR_END:%.*]], label [[FOR_BODY:%.*]]
@@ -51,7 +51,7 @@ define i32 @test(i32* nocapture %f) #0 {
51
51
; UNROLL: for.inc:
52
52
; UNROLL-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
53
53
; UNROLL-NEXT: [[EXITCOND:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 128
54
- ; UNROLL-NEXT: br i1 [[EXITCOND]], label [[FOR_END]], label [[FOR_BODY]], !llvm.loop !2
54
+ ; UNROLL-NEXT: br i1 [[EXITCOND]], label [[FOR_END]], label [[FOR_BODY]], [[LOOP2: !llvm.loop !.*]]
55
55
; UNROLL: for.end:
56
56
; UNROLL-NEXT: ret i32 0
57
57
;
@@ -84,7 +84,7 @@ define i32 @test(i32* nocapture %f) #0 {
84
84
; UNROLL-NOSIMPLIFY: pred.store.continue3:
85
85
; UNROLL-NOSIMPLIFY-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
86
86
; UNROLL-NOSIMPLIFY-NEXT: [[TMP8:%.*]] = icmp eq i64 [[INDEX_NEXT]], 128
87
- ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !0
87
+ ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP0: !llvm.loop !.*]]
88
88
; UNROLL-NOSIMPLIFY: middle.block:
89
89
; UNROLL-NOSIMPLIFY-NEXT: [[CMP_N:%.*]] = icmp eq i64 128, 128
90
90
; UNROLL-NOSIMPLIFY-NEXT: br i1 [[CMP_N]], label [[FOR_END:%.*]], label [[SCALAR_PH]]
@@ -104,7 +104,7 @@ define i32 @test(i32* nocapture %f) #0 {
104
104
; UNROLL-NOSIMPLIFY: for.inc:
105
105
; UNROLL-NOSIMPLIFY-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
106
106
; UNROLL-NOSIMPLIFY-NEXT: [[EXITCOND:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 128
107
- ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[EXITCOND]], label [[FOR_END]], label [[FOR_BODY]], !llvm.loop !2
107
+ ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[EXITCOND]], label [[FOR_END]], label [[FOR_BODY]], [[LOOP2: !llvm.loop !.*]]
108
108
; UNROLL-NOSIMPLIFY: for.end:
109
109
; UNROLL-NOSIMPLIFY-NEXT: ret i32 0
110
110
;
@@ -139,7 +139,7 @@ define i32 @test(i32* nocapture %f) #0 {
139
139
; VEC: pred.store.continue2:
140
140
; VEC-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
141
141
; VEC-NEXT: [[TMP13:%.*]] = icmp eq i64 [[INDEX_NEXT]], 128
142
- ; VEC-NEXT: br i1 [[TMP13]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !0
142
+ ; VEC-NEXT: br i1 [[TMP13]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP0: !llvm.loop !.*]]
143
143
; VEC: middle.block:
144
144
; VEC-NEXT: [[CMP_N:%.*]] = icmp eq i64 128, 128
145
145
; VEC-NEXT: br i1 [[CMP_N]], label [[FOR_END:%.*]], label [[FOR_BODY:%.*]]
@@ -156,7 +156,7 @@ define i32 @test(i32* nocapture %f) #0 {
156
156
; VEC: for.inc:
157
157
; VEC-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
158
158
; VEC-NEXT: [[EXITCOND:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 128
159
- ; VEC-NEXT: br i1 [[EXITCOND]], label [[FOR_END]], label [[FOR_BODY]], !llvm.loop !2
159
+ ; VEC-NEXT: br i1 [[EXITCOND]], label [[FOR_END]], label [[FOR_BODY]], [[LOOP2: !llvm.loop !.*]]
160
160
; VEC: for.end:
161
161
; VEC-NEXT: ret i32 0
162
162
;
@@ -255,7 +255,7 @@ define void @bug18724(i1 %cond) {
255
255
; UNROLL-NOSIMPLIFY-NEXT: [[INDUCTION8:%.*]] = add i32 [[TMP6]], 1
256
256
; UNROLL-NOSIMPLIFY-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
257
257
; UNROLL-NOSIMPLIFY-NEXT: [[TMP7:%.*]] = icmp eq i64 [[INDEX_NEXT]], 0
258
- ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP7]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !3
258
+ ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP7]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP3: !llvm.loop !.*]]
259
259
; UNROLL-NOSIMPLIFY: middle.block:
260
260
; UNROLL-NOSIMPLIFY-NEXT: [[BIN_RDX:%.*]] = add i32 [[PREDPHI5]], [[PREDPHI]]
261
261
; UNROLL-NOSIMPLIFY-NEXT: [[CMP_N:%.*]] = icmp eq i64 1, 0
@@ -279,7 +279,7 @@ define void @bug18724(i1 %cond) {
279
279
; UNROLL-NOSIMPLIFY-NEXT: [[INDVARS_IV_NEXT4]] = add nsw i64 [[INDVARS_IV3]], 1
280
280
; UNROLL-NOSIMPLIFY-NEXT: [[TMP1:%.*]] = trunc i64 [[INDVARS_IV3]] to i32
281
281
; UNROLL-NOSIMPLIFY-NEXT: [[CMP13:%.*]] = icmp slt i32 [[TMP1]], 0
282
- ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[CMP13]], label [[FOR_BODY14]], label [[FOR_INC26_LOOPEXIT]], !llvm.loop !4
282
+ ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[CMP13]], label [[FOR_BODY14]], label [[FOR_INC26_LOOPEXIT]], [[LOOP4: !llvm.loop !.*]]
283
283
; UNROLL-NOSIMPLIFY: for.inc26.loopexit:
284
284
; UNROLL-NOSIMPLIFY-NEXT: [[INEWCHUNKS_2_LCSSA:%.*]] = phi i32 [ [[INEWCHUNKS_2]], [[FOR_INC23]] ], [ [[BIN_RDX]], [[MIDDLE_BLOCK]] ]
285
285
; UNROLL-NOSIMPLIFY-NEXT: br label [[FOR_INC26]]
@@ -371,7 +371,7 @@ define void @minimal_bit_widths(i1 %c) {
371
371
; UNROLL: pred.store.continue6:
372
372
; UNROLL-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
373
373
; UNROLL-NEXT: [[TMP8:%.*]] = icmp eq i64 [[INDEX_NEXT]], undef
374
- ; UNROLL-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !3
374
+ ; UNROLL-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP3: !llvm.loop !.*]]
375
375
; UNROLL: middle.block:
376
376
; UNROLL-NEXT: [[CMP_N:%.*]] = icmp eq i64 undef, undef
377
377
; UNROLL-NEXT: br i1 [[CMP_N]], label [[FOR_END:%.*]], label [[FOR_BODY:%.*]]
@@ -390,7 +390,7 @@ define void @minimal_bit_widths(i1 %c) {
390
390
; UNROLL-NEXT: [[TMP6]] = add nuw nsw i64 [[TMP0]], 1
391
391
; UNROLL-NEXT: [[TMP7]] = add i64 [[TMP1]], -1
392
392
; UNROLL-NEXT: [[TMP8:%.*]] = icmp eq i64 [[TMP7]], 0
393
- ; UNROLL-NEXT: br i1 [[TMP8]], label [[FOR_END]], label [[FOR_BODY]], !llvm.loop !4
393
+ ; UNROLL-NEXT: br i1 [[TMP8]], label [[FOR_END]], label [[FOR_BODY]], [[LOOP4: !llvm.loop !.*]]
394
394
; UNROLL: for.end:
395
395
; UNROLL-NEXT: ret void
396
396
;
@@ -426,7 +426,7 @@ define void @minimal_bit_widths(i1 %c) {
426
426
; UNROLL-NOSIMPLIFY: pred.store.continue6:
427
427
; UNROLL-NOSIMPLIFY-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
428
428
; UNROLL-NOSIMPLIFY-NEXT: [[TMP8:%.*]] = icmp eq i64 [[INDEX_NEXT]], undef
429
- ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !5
429
+ ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP8]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP5: !llvm.loop !.*]]
430
430
; UNROLL-NOSIMPLIFY: middle.block:
431
431
; UNROLL-NOSIMPLIFY-NEXT: [[CMP_N:%.*]] = icmp eq i64 undef, undef
432
432
; UNROLL-NOSIMPLIFY-NEXT: br i1 [[CMP_N]], label [[FOR_END:%.*]], label [[SCALAR_PH]]
@@ -449,7 +449,7 @@ define void @minimal_bit_widths(i1 %c) {
449
449
; UNROLL-NOSIMPLIFY-NEXT: [[TMP6]] = add nuw nsw i64 [[TMP0]], 1
450
450
; UNROLL-NOSIMPLIFY-NEXT: [[TMP7]] = add i64 [[TMP1]], -1
451
451
; UNROLL-NOSIMPLIFY-NEXT: [[TMP8:%.*]] = icmp eq i64 [[TMP7]], 0
452
- ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP8]], label [[FOR_END]], label [[FOR_BODY]], !llvm.loop !6
452
+ ; UNROLL-NOSIMPLIFY-NEXT: br i1 [[TMP8]], label [[FOR_END]], label [[FOR_BODY]], [[LOOP6: !llvm.loop !.*]]
453
453
; UNROLL-NOSIMPLIFY: for.end:
454
454
; UNROLL-NOSIMPLIFY-NEXT: ret void
455
455
;
@@ -489,7 +489,7 @@ define void @minimal_bit_widths(i1 %c) {
489
489
; VEC: pred.store.continue3:
490
490
; VEC-NEXT: [[INDEX_NEXT]] = add i64 [[INDEX]], 2
491
491
; VEC-NEXT: [[TMP15:%.*]] = icmp eq i64 [[INDEX_NEXT]], undef
492
- ; VEC-NEXT: br i1 [[TMP15]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop !4
492
+ ; VEC-NEXT: br i1 [[TMP15]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], [[LOOP4: !llvm.loop !.*]]
493
493
; VEC: middle.block:
494
494
; VEC-NEXT: [[CMP_N:%.*]] = icmp eq i64 undef, undef
495
495
; VEC-NEXT: br i1 [[CMP_N]], label [[FOR_END:%.*]], label [[FOR_BODY:%.*]]
@@ -508,7 +508,7 @@ define void @minimal_bit_widths(i1 %c) {
508
508
; VEC-NEXT: [[TMP6]] = add nuw nsw i64 [[TMP0]], 1
509
509
; VEC-NEXT: [[TMP7]] = add i64 [[TMP1]], -1
510
510
; VEC-NEXT: [[TMP8:%.*]] = icmp eq i64 [[TMP7]], 0
511
- ; VEC-NEXT: br i1 [[TMP8]], label [[FOR_END]], label [[FOR_BODY]], !llvm.loop !5
511
+ ; VEC-NEXT: br i1 [[TMP8]], label [[FOR_END]], label [[FOR_BODY]], [[LOOP5: !llvm.loop !.*]]
512
512
; VEC: for.end:
513
513
; VEC-NEXT: ret void
514
514
;
0 commit comments