Chromium Code Reviews| Index: src/compiler/schedule.cc |
| diff --git a/src/compiler/schedule.cc b/src/compiler/schedule.cc |
| index ec0caf0008cab5e1a8d91ee1af0ab2c3a957fbf1..ca0fd871159eeee1e2e080d2a662c9cf0324659f 100644 |
| --- a/src/compiler/schedule.cc |
| +++ b/src/compiler/schedule.cc |
| @@ -121,11 +121,6 @@ std::ostream& operator<<(std::ostream& os, const BasicBlock::Id& id) { |
| } |
| -std::ostream& operator<<(std::ostream& os, const BasicBlock::RpoNumber& rpo) { |
| - return os << rpo.ToSize(); |
| -} |
| - |
| - |
| Schedule::Schedule(Zone* zone, size_t node_count_hint) |
| : zone_(zone), |
| all_blocks_(zone), |
| @@ -319,14 +314,14 @@ void Schedule::SetBlockForNode(BasicBlock* block, Node* node) { |
| std::ostream& operator<<(std::ostream& os, const Schedule& s) { |
| for (BasicBlock* block : *s.rpo_order()) { |
|
Michael Starzinger
2015/02/25 14:59:37
Since this printer already iterates the rpo_order
dcarney
2015/02/25 16:08:26
sweet. done
|
| - os << "--- BLOCK B" << block->id(); |
| + os << "--- BLOCK #" << block->id(); |
| if (block->deferred()) os << " (deferred)"; |
| if (block->PredecessorCount() != 0) os << " <- "; |
| bool comma = false; |
| for (BasicBlock const* predecessor : block->predecessors()) { |
| if (comma) os << ", "; |
| comma = true; |
| - os << "B" << predecessor->id(); |
| + os << "#" << predecessor->id(); |
| } |
| os << " ---\n"; |
| for (Node* node : *block) { |
| @@ -355,7 +350,7 @@ std::ostream& operator<<(std::ostream& os, const Schedule& s) { |
| for (BasicBlock const* successor : block->successors()) { |
| if (comma) os << ", "; |
| comma = true; |
| - os << "B" << successor->id(); |
| + os << "#" << successor->id(); |
| } |
| os << "\n"; |
| } |