[Mlir-commits] [mlir] cb21b7d - [mlir] Fix warnings
Kazu Hirata
llvmlistbot at llvm.org
Wed Sep 14 14:35:29 PDT 2022
Author: Kazu Hirata
Date: 2022-09-14T14:35:19-07:00
New Revision: cb21b7d274e940c2ac15d5f486841e175c63928c
URL: https://github.com/llvm/llvm-project/commit/cb21b7d274e940c2ac15d5f486841e175c63928c
DIFF: https://github.com/llvm/llvm-project/commit/cb21b7d274e940c2ac15d5f486841e175c63928c.diff
LOG: [mlir] Fix warnings
This patch fixes three warnings of the form:
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp:1436:5: error:
default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index ccedde077434b..10c9dd268b2a5 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -1433,8 +1433,6 @@ struct Conv1DGenerator : public StructuredGenerator<LinalgOp> {
rhsShape = {fSize, cSize, kwSize};
resShape = {nSize, fSize, wSize};
break;
- default:
- return failure();
}
vector::TransferWriteOp write;
@@ -1482,8 +1480,6 @@ struct Conv1DGenerator : public StructuredGenerator<LinalgOp> {
res = builder.create<vector::TransposeOp>(loc, res, permRes);
break;
}
- default:
- return failure();
}
//===------------------------------------------------------------------===//
@@ -1552,8 +1548,6 @@ struct Conv1DGenerator : public StructuredGenerator<LinalgOp> {
res = builder.create<vector::TransposeOp>(loc, res, perm);
break;
}
- default:
- return failure();
}
// Write back res slice of size {n, w, f} @ [0, 0, 0].
More information about the Mlir-commits
mailing list