[Mlir-commits] [mlir] e7f0552 - [mlir] Fix unused variable warning. NFCI.
Benjamin Kramer
llvmlistbot at llvm.org
Tue Apr 5 12:24:16 PDT 2022
Author: Benjamin Kramer
Date: 2022-04-05T21:24:05+02:00
New Revision: e7f0552682ba644a37beb7699066c08ad83afc97
URL: https://github.com/llvm/llvm-project/commit/e7f0552682ba644a37beb7699066c08ad83afc97
DIFF: https://github.com/llvm/llvm-project/commit/e7f0552682ba644a37beb7699066c08ad83afc97.diff
LOG: [mlir] Fix unused variable warning. NFCI.
Added:
Modified:
mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
index a1e80e1fc3743..224c7fbc01df4 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
@@ -213,9 +213,7 @@ class Convert1DExtractStridedSliceIntoShuffle
int64_t stride =
op.getStrides().getValue().front().cast<IntegerAttr>().getInt();
- auto loc = op.getLoc();
- auto elemType = dstType.getElementType();
- assert(elemType.isSignlessIntOrIndexOrFloat());
+ assert(dstType.getElementType().isSignlessIntOrIndexOrFloat());
// Single offset can be more efficiently shuffled.
if (op.getOffsets().getValue().size() != 1)
More information about the Mlir-commits
mailing list