Home | History | Annotate | Download | only in compiler

Lines Matching refs:node

10 #include "src/compiler/node-properties.h"
16 Reduction TailCallOptimization::Reduce(Node* node) {
17 if (node->opcode() != IrOpcode::kReturn) return NoChange();
21 Node* const call = NodeProperties::GetValueInput(node, 0);
24 NodeProperties::GetEffectInput(node) == call &&
26 Node* const control = NodeProperties::GetControlInput(node);
28 call->OwnedBy(node, control) && control->OwnedBy(node)) {
30 // the Return node value and effect depends directly on the Call node,
65 DCHECK_EQ(3, node->InputCount());
66 node->ReplaceInput(0, NodeProperties::GetEffectInput(call));
67 node->ReplaceInput(1, NodeProperties::GetControlInput(call));
68 node->RemoveInput(2);
70 node->InsertInput(graph()->zone(), index,
74 node, common()->TailCall(CallDescriptorOf(call->op())));
75 return Changed(node);