[llvm] r216660 - [PBQP] Only output debug information when requested

Arnaud A. de Grandmaison arnaud.degrandmaison at arm.com
Thu Aug 28 03:15:47 PDT 2014


Author: aadg
Date: Thu Aug 28 05:15:47 2014
New Revision: 216660

URL: http://llvm.org/viewvc/llvm-project?rev=216660&view=rev
Log:
[PBQP] Only output debug information when requested

Modified:
    llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp?rev=216660&r1=216659&r2=216660&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp Thu Aug 28 05:15:47 2014
@@ -354,8 +354,8 @@ PBQPRAProblem *PBQPBuilderWithCoalescing
         if (pregOpt < allowed.size()) {
           ++pregOpt; // +1 to account for spill option.
           PBQPRAGraph::NodeId node = p->getNodeForVReg(src);
-          llvm::dbgs() << "Reading node costs for node " << node << "\n";
-          llvm::dbgs() << "Source node: " << &g.getNodeCosts(node) << "\n";
+          DEBUG(llvm::dbgs() << "Reading node costs for node " << node << "\n");
+          DEBUG(llvm::dbgs() << "Source node: " << &g.getNodeCosts(node) << "\n");
           PBQP::Vector newCosts(g.getNodeCosts(node));
           addPhysRegCoalesce(newCosts, pregOpt, cBenefit);
           g.setNodeCosts(node, newCosts);





More information about the llvm-commits mailing list