Skip to content

Commit 120a5bf

Browse files
author
GYT
committed
Address IR review pt3: only 1 load
1 parent 55af5ac commit 120a5bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
; FORCEDONLY-SAME: loop not vectorized: only vectorizing loops that explicitly request it
4444
; FORCEDONLY: LV: Loop hints prevent vectorization
4545

46-
define double @CompareDistmats(ptr %distmat1, ptr %distmat2){
46+
define double @CompareDistmats(ptr %distmat1){
4747
entry:
4848
br label %for.body
4949

@@ -58,9 +58,7 @@ for.body: ; preds = %entry, %for.body
5858
%RMSD.013 = phi double [ 0.000000e+00, %entry ], [ %add, %for.body ]
5959
%arrayidx = getelementptr inbounds nuw double, ptr %distmat1, i64 %i.014
6060
%1 = load double, ptr %arrayidx, align 8
61-
%arrayidx1 = getelementptr inbounds nuw double, ptr %distmat2, i64 %i.014
62-
%2 = load double, ptr %arrayidx1, align 8
63-
%sub = fsub fast double %1, %2
61+
%sub = fsub fast double %1, 1.234e+0
6462
%mul = fmul fast double %sub, %sub
6563
%add = fadd fast double %mul, %RMSD.013
6664
%inc = add nuw nsw i64 %i.014, 1

0 commit comments

Comments
 (0)