[Mlir-commits] [mlir] afe43e0 - [mlir] Remove extractVectorTypeFromShapedValue
Kazu Hirata
llvmlistbot at llvm.org
Wed Dec 1 13:43:27 PST 2021
Author: Kazu Hirata
Date: 2021-12-01T13:43:17-08:00
New Revision: afe43e071309e27547a07b0916eb8bdae1604106
URL: https://github.com/llvm/llvm-project/commit/afe43e071309e27547a07b0916eb8bdae1604106
DIFF: https://github.com/llvm/llvm-project/commit/afe43e071309e27547a07b0916eb8bdae1604106.diff
LOG: [mlir] Remove extractVectorTypeFromShapedValue
This patch fixes the build by removing
extractVectorTypeFromShapedValue. The last use was removed Dec 1,
2021 in commit extractVectorTypeFromShapedValue.
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 42811da8f59ec..099a91d0a0a80 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -111,13 +111,6 @@ struct VectorizationResult {
Operation *newOp;
};
-/// Return a vector type of the same shape and element type as the (assumed)
-/// ShapedType of `v`.
-static VectorType extractVectorTypeFromShapedValue(Value v) {
- auto st = v.getType().cast<ShapedType>();
- return VectorType::get(st.getShape(), st.getElementType());
-}
-
static llvm::Optional<vector::CombiningKind>
getKindForOp(Operation *reductionOp) {
if (!reductionOp)
More information about the Mlir-commits
mailing list