[llvm] [SLP][TTI]Add support for strided loads. (PR #80310)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 09:53:57 PST 2024


================
@@ -250,6 +256,23 @@ class RISCVTTIImpl : public BasicTTIImplBase<RISCVTTIImpl> {
     return ST->is64Bit() && !ST->hasVInstructionsI64();
   }
 
+  bool isLegalStridedLoad(Type *DataType, Align Alignment) {
+    if (!ST->hasVInstructions())
----------------
preames wrote:

isLegalStridedLoadStore already exists on TLI.  You can reuse by legalizing the type to a MVT.  

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


More information about the llvm-commits mailing list