[llvm] [LV] Check all users of partial reductions in chain have same scale. (PR #162822)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 06:23:36 PDT 2025


================
@@ -0,0 +1,112 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --filter-out-after "^scalar.ph:" --version 4
+; RUN: opt --mattr=+neon,+dotprod -passes=loop-vectorize -force-vector-interleave=1 -enable-epilogue-vectorization=false -S < %s | FileCheck %s --check-prefixes=CHECK-NEON
+
+target triple = "arm64-apple-macosx"
+
+define i32 @red_extended_add_incomplete_chain(ptr %start, ptr %end, i32 %offset) {
----------------
fhahn wrote:

The behavior for this function didn't change, it was already not producing partial reductions without the change. I stripped the changes from the diff, only the previously crashing case has been added now, thanks

https://github.com/llvm/llvm-project/pull/162822


More information about the llvm-commits mailing list