[llvm] [RISC-V] Limit vscale interleaving to addrspace 0. (PR #91573)
Harald van Dijk via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 09:56:52 PDT 2024
================
@@ -21048,6 +21048,11 @@ bool RISCVTargetLowering::isLegalInterleavedAccessType(
return false;
ContainerVT = getContainerForFixedLengthVector(VT.getSimpleVT());
+ } else {
+ // The intrinsics for scalable vectors are not overloaded on pointer type
+ // and can only handle the default address space.
+ if (AddrSpace)
+ return false;
----------------
hvdijk wrote:
The previous `if` block doesn't unconditionally return, so taking out the `else` would alter the behaviour and also apply the check to fixed-length vector types, wouldn't it? Or am I misreading?
https://github.com/llvm/llvm-project/pull/91573
More information about the llvm-commits
mailing list