[llvm-branch-commits] [mlir] 0d88d7d - Delete unused function (was breaking the -Werror build)
David Blaikie via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 12 15:34:40 PST 2021
Author: David Blaikie
Date: 2021-01-12T15:29:44-08:00
New Revision: 0d88d7d82bc44b211a8187650a06c6cd3492186a
URL: https://github.com/llvm/llvm-project/commit/0d88d7d82bc44b211a8187650a06c6cd3492186a
DIFF: https://github.com/llvm/llvm-project/commit/0d88d7d82bc44b211a8187650a06c6cd3492186a.diff
LOG: Delete unused function (was breaking the -Werror build)
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 8f02f3d83cf1..0deb4e3f59ae 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
@@ -350,32 +350,6 @@ bool mlir::linalg::isFusableInto(const LinalgDependenceGraph &graph,
return true;
}
-static bool isSameSubView(Value a, Value b) {
- if (a == b)
- return true;
- auto sva = a.getDefiningOp<SubViewOp>();
- auto svb = b.getDefiningOp<SubViewOp>();
- if (!sva || !svb)
- return false;
- if (!isSameSubView(sva.getViewSource(), svb.getViewSource()))
- return false;
- if (sva.getType() != svb.getType())
- return false;
- if (sva.getNumOperands() != svb.getNumOperands())
- return false;
- if (sva.static_offsets() != svb.static_offsets())
- return false;
- if (sva.static_sizes() != svb.static_sizes())
- return false;
- if (sva.static_strides() != svb.static_strides())
- return false;
- /// Skip the "source" operand.
- for (unsigned idx = 1, e = sva.getNumOperands(); idx != e; ++idx)
- if (sva.getOperand(idx) != svb.getOperand(idx))
- return false;
- return true;
-}
-
static Optional<LinalgDependenceGraph::LinalgDependenceGraphElem>
findFusableProducer(OpOperand &consumerOpOperand,
const LinalgDependenceGraph &dependenceGraph) {
More information about the llvm-branch-commits
mailing list