Skip to content

Conversation

@basioli-k
Copy link
Contributor

No description provided.

@basioli-k basioli-k merged commit f3a1421 into llvm:main Mar 25, 2025
6 of 10 checks passed
@llvmbot
Copy link
Member

llvmbot commented Mar 25, 2025

@llvm/pr-subscribers-mlir-vector

@llvm/pr-subscribers-mlir

Author: Karlo Basioli (basioli-k)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/132944.diff

1 Files Affected:

  • (modified) mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp (+2-2)
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
index 57d1d9bcadf60..5debebd3218ed 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -247,8 +247,8 @@ static Value staticallyExtractSubvector(OpBuilder &rewriter, Location loc,
 ///     {offsets = [%offset], strides [1]}
 static Value staticallyInsertSubvector(OpBuilder &rewriter, Location loc,
                                        Value src, Value dest, int64_t offset) {
-  auto srcVecTy = cast<VectorType>(src.getType());
-  auto destVecTy = cast<VectorType>(dest.getType());
+  [[maybe_unused]] auto srcVecTy = cast<VectorType>(src.getType());
+  [[maybe_unused]] auto destVecTy = cast<VectorType>(dest.getType());
   assert(srcVecTy.getRank() == 1 && destVecTy.getRank() == 1 &&
          "expected source and dest to be rank-1 vector types");
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants