Index: src/compiler/branch-elimination.cc |
diff --git a/src/compiler/branch-elimination.cc b/src/compiler/branch-elimination.cc |
index 0b7ad19af759012cd82a682b9f62674aabed9f3d..2d9a084e215f6fe0141c0735905ac64ab20274b1 100644 |
--- a/src/compiler/branch-elimination.cc |
+++ b/src/compiler/branch-elimination.cc |
@@ -85,7 +85,7 @@ Reduction BranchElimination::ReduceDeoptimizeConditional(Node* node) { |
DCHECK(node->opcode() == IrOpcode::kDeoptimizeIf || |
node->opcode() == IrOpcode::kDeoptimizeUnless); |
bool condition_is_true = node->opcode() == IrOpcode::kDeoptimizeUnless; |
- DeoptimizeReason reason = DeoptimizeReasonOf(node->op()); |
+ DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); |
Node* condition = NodeProperties::GetValueInput(node, 0); |
Node* frame_state = NodeProperties::GetValueInput(node, 1); |
Node* effect = NodeProperties::GetEffectInput(node); |
@@ -105,9 +105,8 @@ Reduction BranchElimination::ReduceDeoptimizeConditional(Node* node) { |
// with the {control} node that already contains the right information. |
ReplaceWithValue(node, dead(), effect, control); |
} else { |
- control = |
- graph()->NewNode(common()->Deoptimize(DeoptimizeKind::kEager, reason), |
- frame_state, effect, control); |
+ control = graph()->NewNode(common()->Deoptimize(p.kind(), p.reason()), |
+ frame_state, effect, control); |
// TODO(bmeurer): This should be on the AdvancedReducer somehow. |
NodeProperties::MergeControlToEnd(graph(), common(), control); |
Revisit(graph()->end()); |