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

Lang Hames lhames at gmail.com
Thu Aug 28 14:59:21 PDT 2014


Thanks Arnaud!

- Lang.


On Thu, Aug 28, 2014 at 3:15 AM, Arnaud A. de Grandmaison <
arnaud.degrandmaison at arm.com> wrote:

> 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);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140828/7b18c155/attachment.html>


More information about the llvm-commits mailing list