Skip to content

Commit 65774f5

Browse files
committed
Update: reorder phi entries in %for.body
1 parent 149f7e6 commit 65774f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Transforms/LoopVectorize/use-iv-start-value.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ define i64 @foo(ptr %p1, ptr %p2, i64 %start, i64 %end) {
3535
; CHECK-NEXT: [[BC_RESUME_VAL:%.*]] = phi i64 [ [[IND_END]], %[[MIDDLE_BLOCK]] ], [ [[START2]], %[[ENTRY]] ]
3636
; CHECK-NEXT: br label %[[FOR_BODY:.*]]
3737
; CHECK: [[FOR_BODY]]:
38-
; CHECK-NEXT: [[IND1:%.*]] = phi i64 [ [[IND_NEXT1:%.*]], %[[FOR_BODY]] ], [ [[BC_RESUME_VAL]], %[[SCALAR_PH]] ]
38+
; CHECK-NEXT: [[IND1:%.*]] = phi i64 [ [[BC_RESUME_VAL]], %[[SCALAR_PH]] ], [ [[IND_NEXT1:%.*]], %[[FOR_BODY]] ]
3939
; CHECK-NEXT: [[ARRAYIDX3:%.*]] = getelementptr inbounds i32, ptr [[P1]], i64 [[IND1]]
4040
; CHECK-NEXT: [[TMP7:%.*]] = load i32, ptr [[ARRAYIDX3]], align 4
4141
; CHECK-NEXT: [[ARRAYIDX2:%.*]] = getelementptr inbounds i32, ptr [[P2]], i64 [[IND1]]
@@ -52,7 +52,7 @@ entry:
5252
br label %for.body
5353

5454
for.body:
55-
%ind = phi i64 [ %ind.next, %for.body ], [ %start2, %entry ]
55+
%ind = phi i64 [ %start2, %entry ], [ %ind.next, %for.body ]
5656
%arrayidx1 = getelementptr inbounds i32, ptr %p1, i64 %ind
5757
%0 = load i32, ptr %arrayidx1, align 4
5858
%arrayidx2 = getelementptr inbounds i32, ptr %p2, i64 %ind

0 commit comments

Comments
 (0)