Skip to content

Commit e64723d

Browse files
authored
Merge pull request #11742 from fhahn/phaseordering-update-checks
[PhaseOrdering] Update check lines are upstream improvements. rdar://163287559
2 parents 0bb08b3 + 0b50595 commit e64723d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/test/Transforms/PhaseOrdering/runtime-check-removal.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ define void @test_remove_check_with_incrementing_integer_induction(i16 %start, i
1515
; CHECK-NEXT: [[OR_COND3:%.*]] = and i1 [[LEN_NEG_NOT]], [[C1]]
1616
; CHECK-NEXT: br i1 [[OR_COND3]], label [[LOOP_LATCH_PREHEADER:%.*]], label [[EXIT:%.*]]
1717
; CHECK: loop.latch.preheader:
18-
; CHECK-NEXT: [[TMP0:%.*]] = add i16 [[A]], -1
1918
; CHECK-NEXT: [[TMP1:%.*]] = add nsw i16 [[LEN]], -1
20-
; CHECK-NEXT: [[UMIN:%.*]] = tail call i16 @llvm.umin.i16(i16 [[TMP0]], i16 [[TMP1]])
2119
; CHECK-NEXT: br label [[LOOP_LATCH:%.*]]
2220
; CHECK: loop.latch:
2321
; CHECK-NEXT: [[IV2:%.*]] = phi i16 [ [[IV_NEXT:%.*]], [[LOOP_LATCH]] ], [ 0, [[LOOP_LATCH_PREHEADER]] ]
2422
; CHECK-NEXT: tail call void @use(i16 [[IV2]])
2523
; CHECK-NEXT: [[IV_NEXT]] = add nuw nsw i16 [[IV2]], 1
26-
; CHECK-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i16 [[IV2]], [[UMIN]]
24+
; CHECK-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i16 [[IV2]], [[TMP1]]
2725
; CHECK-NEXT: br i1 [[EXITCOND_NOT]], label [[EXIT]], label [[LOOP_LATCH]]
2826
; CHECK: exit:
2927
; CHECK-NEXT: ret void

0 commit comments

Comments
 (0)