[llvm] [RISCV] Tuple intrinsics are creating overly aligned memory operands (PR #115804)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 11 19:28:23 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")
----------------
wangpc-pp wrote:
(We definitely should fix this `strcmp`)
https://github.com/llvm/llvm-project/pull/115804
More information about the llvm-commits
mailing list