Skip to content

Commit 7501ca9

Browse files
committed
Compact %indvars
1 parent 29eb436 commit 7501ca9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/Transforms/LoopVectorize/RISCV/vectorize-force-tail-with-evl-fixed-order-recurrence.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,15 +630,15 @@ entry:
630630
br label %for.body
631631

632632
for.body:
633-
%indvars = phi i64 [ 0, %entry ], [ %indvars.next, %for.body ]
633+
%iv = phi i64 [ 0, %entry ], [ %iv.next, %for.body ]
634634
%for1 = phi i32 [ 33, %entry ], [ %0, %for.body ]
635-
%arrayidx = getelementptr inbounds nuw i32, ptr %A, i64 %indvars
635+
%arrayidx = getelementptr inbounds nuw i32, ptr %A, i64 %iv
636636
%0 = load i32, ptr %arrayidx, align 4
637637
%add = add nsw i32 %for1, %0
638-
%arrayidx2 = getelementptr inbounds nuw i32, ptr %B, i64 %indvars
638+
%arrayidx2 = getelementptr inbounds nuw i32, ptr %B, i64 %iv
639639
store i32 %add, ptr %arrayidx2, align 4
640-
%indvars.next = add nuw nsw i64 %indvars, 1
641-
%exitcond.not = icmp eq i64 %indvars.next, %TC
640+
%iv.next = add nuw nsw i64 %iv, 1
641+
%exitcond.not = icmp eq i64 %iv.next, %TC
642642
br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !0
643643

644644
for.end:

0 commit comments

Comments
 (0)