Skip to content

Commit 8fcb822

Browse files
committed
[LV] Add uses of result to pointer-runtime-checks-unprofitable.ll test.
Otherwise %p.2 is not used and will be removed by VPlan transforms, leading to a difference between legacy and VPlan-based cost.
1 parent 9f4a25e commit 8fcb822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/test/Transforms/LoopVectorize/X86/pointer-runtime-checks-unprofitable.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for.body:
8383

8484
%gep.D = getelementptr inbounds double, ptr %D, i64 %iv
8585
%l.D = load double, ptr %gep.D
86-
%p.4 = call double @llvm.pow.f64(double %p.3, double %l.D)
86+
%p.4 = call double @llvm.pow.f64(double %p.2, double %l.D)
8787
%p.5 = call double @llvm.pow.f64(double %p.4, double %p.3)
8888
%mul = fmul double 2.0, %p.5
8989
%mul.2 = fmul double %mul, 2.0

0 commit comments

Comments
 (0)