Skip to content

Commit 835f8f0

Browse files
author
GYT
committed
try simplifying disabled_loop_vectorization test fn to constant store
1 parent 8173da8 commit 835f8f0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,14 @@ entry:
4747

4848
loop:
4949
%iv = phi i64 [ 0, %entry ], [ %inc, %loop ]
50-
%rdx = phi double [ 0.000000e+00, %entry ], [ %add, %loop ]
5150
%arrayidx = getelementptr inbounds nuw double, ptr %src, i64 %iv
52-
%1 = load double, ptr %arrayidx, align 8
53-
%sub = fsub fast double %1, 1.234e+0
54-
%mul = fmul fast double %sub, %sub
55-
%add = fadd fast double %mul, %rdx
51+
store double 1.234e+0, ptr %arrayidx, align 8
5652
%inc = add nuw nsw i64 %iv, 1
5753
%exitcond.not = icmp eq i64 %inc, 15
5854
br i1 %exitcond.not, label %exit, label %loop, !llvm.loop !0
5955

6056
exit:
61-
ret double %add
57+
ret i64 0
6258
}
6359

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

0 commit comments

Comments
 (0)