[Mlir-commits] [mlir] 72455b3 - [mlir][sparse] Fixing -Wunused-variable in Sparsification.cpp
wren romano
llvmlistbot at llvm.org
Mon Mar 20 16:53:26 PDT 2023
Author: wren romano
Date: 2023-03-20T16:53:19-07:00
New Revision: 72455b314f65fb55e0f10c75f88e651d584307bb
URL: https://github.com/llvm/llvm-project/commit/72455b314f65fb55e0f10c75f88e651d584307bb
DIFF: https://github.com/llvm/llvm-project/commit/72455b314f65fb55e0f10c75f88e651d584307bb.diff
LOG: [mlir][sparse] Fixing -Wunused-variable in Sparsification.cpp
Reviewed By: aartbik, Peiming
Differential Revision: https://reviews.llvm.org/D146474
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
index d8aeb4481153..63228531fcf0 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
@@ -762,9 +762,9 @@ static bool computeIterationGraph(CodegenEnv &env, SortMask mask,
// Iterate over the indexing maps of every tensor in the tensor expression.
for (OpOperand &t : env.op()->getOpOperands()) {
// Get map and encoding.
- const auto map = env.op().getMatchingIndexingMap(&t);
const auto enc = getSparseTensorEncoding(t.get().getType());
- assert(map.getNumDims() + getNumNonTrivialIdxExpOnSparseLvls(env.op()) ==
+ assert(env.op().getMatchingIndexingMap(&t).getNumDims() +
+ getNumNonTrivialIdxExpOnSparseLvls(env.op()) ==
n);
// Skips dense inputs/outputs when not requested.
More information about the Mlir-commits
mailing list