mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
[PBQP] Only output debug information when requested
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216660 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -354,8 +354,8 @@ PBQPRAProblem *PBQPBuilderWithCoalescing::build(MachineFunction *mf,
|
|||||||
if (pregOpt < allowed.size()) {
|
if (pregOpt < allowed.size()) {
|
||||||
++pregOpt; // +1 to account for spill option.
|
++pregOpt; // +1 to account for spill option.
|
||||||
PBQPRAGraph::NodeId node = p->getNodeForVReg(src);
|
PBQPRAGraph::NodeId node = p->getNodeForVReg(src);
|
||||||
llvm::dbgs() << "Reading node costs for node " << node << "\n";
|
DEBUG(llvm::dbgs() << "Reading node costs for node " << node << "\n");
|
||||||
llvm::dbgs() << "Source node: " << &g.getNodeCosts(node) << "\n";
|
DEBUG(llvm::dbgs() << "Source node: " << &g.getNodeCosts(node) << "\n");
|
||||||
PBQP::Vector newCosts(g.getNodeCosts(node));
|
PBQP::Vector newCosts(g.getNodeCosts(node));
|
||||||
addPhysRegCoalesce(newCosts, pregOpt, cBenefit);
|
addPhysRegCoalesce(newCosts, pregOpt, cBenefit);
|
||||||
g.setNodeCosts(node, newCosts);
|
g.setNodeCosts(node, newCosts);
|
||||||
|
Reference in New Issue
Block a user