[llvm] [RISCV] Tuple intrinsics are creating overly aligned memory operands (PR #115804)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 00:23:00 PST 2024
================
@@ -1623,10 +1623,17 @@ bool RISCVTargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
MemTy = MemTy->getScalarType();
Info.memVT = getValueType(DL, MemTy);
- if (MemTy->isTargetExtTy())
+ if (MemTy->isTargetExtTy()) {
+ // RISC-V vector tuple type's alignment type should be its element type.
+ if (cast<TargetExtType>(MemTy)->getName() == "riscv.vector.tuple")
----------------
4vtomat wrote:
Yeah, maybe we should use enum instead of string lol
https://github.com/llvm/llvm-project/pull/115804
More information about the llvm-commits
mailing list