| Index: src/compiler/graph-visualizer.cc
|
| diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc
|
| index fe9c28eddd07f931758b4a20c986e7eed062339d..0bad333d842c00c5860e4f448a80845e5e53d0e7 100644
|
| --- a/src/compiler/graph-visualizer.cc
|
| +++ b/src/compiler/graph-visualizer.cc
|
| @@ -129,7 +129,7 @@ class JSONGraphNodeWriter {
|
| os_ << "{\"id\":" << SafeId(node) << ",\"label\":\"" << Escaped(label, "\"")
|
| << "\"";
|
| IrOpcode::Value opcode = node->opcode();
|
| - if (opcode == IrOpcode::kPhi || opcode == IrOpcode::kEffectPhi) {
|
| + if (IrOpcode::IsPhiOpcode(opcode)) {
|
| os_ << ",\"rankInputs\":[0," << NodeProperties::FirstControlIndex(node)
|
| << "]";
|
| os_ << ",\"rankWithInput\":[" << NodeProperties::FirstControlIndex(node)
|
| @@ -325,8 +325,7 @@ void GraphVisualizer::PrintNode(Node* node, bool gray) {
|
|
|
|
|
| static bool IsLikelyBackEdge(Node* from, int index, Node* to) {
|
| - if (from->opcode() == IrOpcode::kPhi ||
|
| - from->opcode() == IrOpcode::kEffectPhi) {
|
| + if (IrOpcode::IsPhiOpcode(from->opcode())) {
|
| Node* control = NodeProperties::GetControlInput(from, 0);
|
| return control != NULL && control->opcode() != IrOpcode::kMerge &&
|
| control != to && index != 0;
|
|
|