Avoid unused variable warning in opt mode
authorJacques Pienaar <jpienaar@google.com>
Wed, 20 Jan 2021 17:45:22 +0000 (09:45 -0800)
committerJacques Pienaar <jpienaar@google.com>
Wed, 20 Jan 2021 17:45:22 +0000 (09:45 -0800)
mlir/lib/Transforms/LoopFusion.cpp

index 2bee9cb..6c56368 100644 (file)
@@ -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.