[Mlir-commits] [mlir] 0f9f0a4 - Remove unused isZero function
Geoffrey Martin-Noble
llvmlistbot at llvm.org
Thu Nov 19 19:58:51 PST 2020
Author: Geoffrey Martin-Noble
Date: 2020-11-19T19:58:39-08:00
New Revision: 0f9f0a4046e11c2b4c130640f343e3b2b5db08c1
URL: https://github.com/llvm/llvm-project/commit/0f9f0a4046e11c2b4c130640f343e3b2b5db08c1
DIFF: https://github.com/llvm/llvm-project/commit/0f9f0a4046e11c2b4c130640f343e3b2b5db08c1.diff
LOG: Remove unused isZero function
Unused since https://reviews.llvm.org/D91503 and triggering
-Wunused-function
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D91838
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp b/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
index 2d1186266860..45a68fcba4a2 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
@@ -782,12 +782,6 @@ FusableOpDependencesTy mlir::linalg::findAllFusableDependences(
return fusableDependences;
}
-static bool isZero(Value v) {
- if (auto cst = v.getDefiningOp<ConstantIndexOp>())
- return cst.getValue() == 0;
- return false;
-}
-
/// Tile the fused loops in the root operation, by setting the tile sizes for
/// all other loops to zero (those will be tiled later).
static Optional<TiledLinalgOp> tileRootOperation(
More information about the Mlir-commits
mailing list