[llvm] [LV][NFC] Fix force-scalable-vectorization-always.ll (PR #201580)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 06:11:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: David Sherwood (david-arm)
<details>
<summary>Changes</summary>
Fixes a buildbot failure related to FP rounding error in LV debug output.
---
Full diff: https://github.com/llvm/llvm-project/pull/201580.diff
1 Files Affected:
- (modified) llvm/test/Transforms/LoopVectorize/AArch64/force-scalable-vectorization-always.ll (+7-8)
``````````diff
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/force-scalable-vectorization-always.ll b/llvm/test/Transforms/LoopVectorize/AArch64/force-scalable-vectorization-always.ll
index fc4f233218a10..d3b1520cb8d25 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/force-scalable-vectorization-always.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/force-scalable-vectorization-always.ll
@@ -1,4 +1,3 @@
-; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --filter "Checking a loop in" --filter "Cost for VF" --filter "Final VPlan for" --filter "Selecting VF:" --version 6
; RUN: opt -passes=loop-vectorize -enable-epilogue-vectorization=false -mattr=disable-maximize-scalable-bandwidth -scalable-vectorization=always -debug-only=loop-vectorize -disable-output %s 2>&1 | FileCheck %s
; REQUIRES: asserts
@@ -8,12 +7,12 @@ target triple = "aarch64"
; but that a scalable VF is still chosen (due to the `-scalable-vectorization=always` flag)
define i32 @cost_prefers_fixed_width_vf_but_force_scalable_vf(ptr noalias %dst, ptr noalias %src, i64 %n) "target-cpu"="neoverse-n2" {
; CHECK-LABEL: 'cost_prefers_fixed_width_vf_but_force_scalable_vf'
-; CHECK: Cost for VF 2: 12 (Estimated cost per lane: 6.0)
-; CHECK: Cost for VF 4: 8 (Estimated cost per lane: 2.0)
-; CHECK: Cost for VF 8: 10 (Estimated cost per lane: 1.2)
+; CHECK: Cost for VF 2: 12 (Estimated cost per lane: 6.
+; CHECK: Cost for VF 4: 8 (Estimated cost per lane: 2.
+; CHECK: Cost for VF 8: 10 (Estimated cost per lane: 1.
; CHECK: Cost for VF vscale x 1: Invalid (Estimated cost per lane: Invalid)
-; CHECK: Cost for VF vscale x 2: 9 (Estimated cost per lane: 4.5)
-; CHECK: Cost for VF vscale x 4: 8 (Estimated cost per lane: 2.0)
+; CHECK: Cost for VF vscale x 2: 9 (Estimated cost per lane: 4.
+; CHECK: Cost for VF vscale x 4: 8 (Estimated cost per lane: 2.
; CHECK: LV: Selecting VF: vscale x 4.
; CHECK: VPlan 'Final VPlan for VF={vscale x 1,vscale x 2,vscale x 4},UF={2}' {
;
@@ -40,8 +39,8 @@ exit:
; if we can't vectorize with SVE (in this case, because SVE is unavailable)
define i32 @no_sve_fallback_to_neon(ptr %src, i64 %n) "target-features"="+neon" {
; CHECK-LABEL: 'no_sve_fallback_to_neon'
-; CHECK: Cost for VF 2: 4 (Estimated cost per lane: 2.0)
-; CHECK: Cost for VF 4: 4 (Estimated cost per lane: 1.0)
+; CHECK: Cost for VF 2: 4 (Estimated cost per lane: 2.
+; CHECK: Cost for VF 4: 4 (Estimated cost per lane: 1.
; CHECK: LV: Selecting VF: 4.
; CHECK: VPlan 'Final VPlan for VF={2,4},UF={2}' {
;
``````````
</details>
https://github.com/llvm/llvm-project/pull/201580
More information about the llvm-commits
mailing list