[llvm-branch-commits] [mlir] cad16e4 - Avoid unused variable warning in opt mode
Jacques Pienaar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 20 09:50:59 PST 2021
Author: Jacques Pienaar
Date: 2021-01-20T09:45:22-08:00
New Revision: cad16e4a9267f08229c59e473db6dedd730a5d93
URL: https://github.com/llvm/llvm-project/commit/cad16e4a9267f08229c59e473db6dedd730a5d93
DIFF: https://github.com/llvm/llvm-project/commit/cad16e4a9267f08229c59e473db6dedd730a5d93.diff
LOG: Avoid unused variable warning in opt mode
Added:
Modified:
mlir/lib/Transforms/LoopFusion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp
index 2bee9cb33405..6c56368ca6e1 100644
--- a/mlir/lib/Transforms/LoopFusion.cpp
+++ b/mlir/lib/Transforms/LoopFusion.cpp
@@ -763,9 +763,11 @@ bool MemRefDependenceGraph::init(FuncOp f) {
}
}
+#ifndef NDEBUG
for (auto &idAndNode : nodes)
LLVM_DEBUG(llvm::dbgs() << "Create node " << idAndNode.first << " for:\n"
<< *(idAndNode.second.op) << "\n");
+#endif
// Add dependence edges between nodes which produce SSA values and their
// users.
More information about the llvm-branch-commits
mailing list