Chromium Code Reviews| Index: src/compiler/graph.cc |
| diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc |
| index 19e9c7fec6b1e6d81c7efd7fd0cd27dd0ad29b2d..7d1d1a3b12c77a58e2e5675dc9849ad9a70d981f 100644 |
| --- a/src/compiler/graph.cc |
| +++ b/src/compiler/graph.cc |
| @@ -11,6 +11,7 @@ |
| #include "src/compiler/node-aux-data-inl.h" |
| #include "src/compiler/node-properties.h" |
| #include "src/compiler/node-properties-inl.h" |
| +#include "src/compiler/opcodes.h" |
| #include "src/compiler/operator-properties.h" |
| #include "src/compiler/operator-properties-inl.h" |
| @@ -29,12 +30,14 @@ void Graph::Decorate(Node* node) { |
| } |
| -Node* Graph::NewNode( |
| - const Operator* op, int input_count, Node** inputs, bool incomplete) { |
| +Node* Graph::NewNode(const Operator* op, int input_count, Node** inputs, |
| + bool incomplete) { |
| DCHECK_LE(op->InputCount(), input_count); |
| - Node* result = Node::New(this, input_count, inputs); |
| + Node* result = Node::New(this, input_count, inputs, incomplete); |
| result->Initialize(op); |
| - if (!incomplete) Decorate(result); |
| + if (!incomplete && !IrOpcode::IsControlOpcode(result->opcode())) { |
|
Michael Starzinger
2014/10/27 09:34:19
Is there a particular reason not to decorate contr
|
| + Decorate(result); |
| + } |
| return result; |
| } |