Index: src/compiler/node.h |
diff --git a/src/compiler/node.h b/src/compiler/node.h |
index d8a44939f389d322e0a0708d05d767aaabe102f0..1281058a806bcb5928319cf5155319a614eb6807 100644 |
--- a/src/compiler/node.h |
+++ b/src/compiler/node.h |
@@ -53,6 +53,8 @@ class Node FINAL : public GenericNode<NodeData, Node> { |
: GenericNode<NodeData, Node>(graph, input_count) {} |
void Initialize(const Operator* op) { set_op(op); } |
+ |
+ bool IsDead() const { return InputCount() && InputAt(0) == NULL; } |
Michael Starzinger
2014/09/05 11:08:10
nit: "InputCount() > 0" for readability?
|
void Kill(); |
void CollectProjections(ZoneVector<Node*>* projections); |