[llvm] [LV] Fix cost misaligned when gather/scatter w/ addr is uniform. (PR #157387)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 7 23:55:41 PDT 2025


================
@@ -2,6 +2,9 @@
 ; RUN: opt < %s -passes=loop-vectorize -mtriple riscv64 -mattr=+rva23u64 -S | FileCheck %s -check-prefixes=CHECK,RVA23
 ; RUN: opt < %s -passes=loop-vectorize -mtriple riscv64 -mattr=+rva23u64,+zvl1024b -S | FileCheck %s -check-prefixes=CHECK,RVA23ZVL1024B
 
+%t0 = type { ptr, %t1, ptr }
+%t1 = type { i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32 }
+
----------------
ElvisWang123 wrote:

I just simply changed `t0` to `i32` but the loop cannot be vectorized because of memory conflict.

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


More information about the llvm-commits mailing list