Skip to content

Commit a509ea9

Browse files
author
GYT
committed
Address IR review pt4: exit block
1 parent 120a5bf commit a509ea9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

llvm/test/Transforms/LoopVectorize/diag-disabled-vectorization-msgs.ll

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ define double @CompareDistmats(ptr %distmat1){
4747
entry:
4848
br label %for.body
4949

50-
for.cond.cleanup: ; preds = %for.body
51-
%add.lcssa = phi double [ %add, %for.body ]
52-
%div = fmul fast double %add.lcssa, 0x3FB1111111111111
53-
%0 = tail call fast double @llvm.sqrt.f64(double %div)
54-
ret double %0
55-
5650
for.body: ; preds = %entry, %for.body
5751
%i.014 = phi i64 [ 0, %entry ], [ %inc, %for.body ]
5852
%RMSD.013 = phi double [ 0.000000e+00, %entry ], [ %add, %for.body ]
@@ -63,7 +57,10 @@ for.body: ; preds = %entry, %for.body
6357
%add = fadd fast double %mul, %RMSD.013
6458
%inc = add nuw nsw i64 %i.014, 1
6559
%exitcond.not = icmp eq i64 %inc, 15
66-
br i1 %exitcond.not, label %for.cond.cleanup, label %for.body, !llvm.loop !0
60+
br i1 %exitcond.not, label %exit, label %for.body, !llvm.loop !0
61+
62+
exit:
63+
ret double %add
6764
}
6865

6966
!0 = distinct !{!0, !1}

0 commit comments

Comments
 (0)