[llvm] [LV] Fix cost misaligned when gather/scatter w/ addr is uniform. (PR #157387)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 00:53:12 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 }
+
----------------
fhahn wrote:
I think you need to simplify the types together with the TBAA metadata. Simpliy changing the type won't be enough, you will need to also have an offset that matches the tbaa offsets used to determine no-alias
https://github.com/llvm/llvm-project/pull/157387
More information about the llvm-commits
mailing list