[Mlir-commits] [mlir] [mlir][Vector] Fix scalable InsertSlice/ExtractSlice lowering (PR #124861)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Thu Jan 30 23:48:44 PST 2025
================
@@ -96,11 +96,15 @@ class ConvertSameRankInsertStridedSliceIntoShuffle
PatternRewriter &rewriter) const override {
auto srcType = op.getSourceVectorType();
auto dstType = op.getDestVectorType();
+ int64_t srcRank = srcType.getRank();
+
+ // Scalable vectors are not supported by vector shuffle.
+ if ((srcType.isScalable() || dstType.isScalable()) && srcRank == 1)
----------------
banach-space wrote:
Why are we also checking for rank-1? Seems unrelated to this PR.
https://github.com/llvm/llvm-project/pull/124861
More information about the Mlir-commits
mailing list