Commit f00a900f authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[turbofan] Simplify EffectControlLinearizer.

This removes a special case for {IfSuccess} control projections from the
effect-control linearizer that is no longer needed now that such control
projections only appear in pairs.

R=jarin@chromium.org

Change-Id: I4d872ad301d09e7424b249fb7c4eb70353a9d3ff
Reviewed-on: https://chromium-review.googlesource.com/574228Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46705}
parent a46765e2
...@@ -536,15 +536,9 @@ void EffectControlLinearizer::ProcessNode(Node* node, Node** frame_state, ...@@ -536,15 +536,9 @@ void EffectControlLinearizer::ProcessNode(Node* node, Node** frame_state,
return; return;
} }
if (node->opcode() == IrOpcode::kIfSuccess) { // The IfSuccess nodes should always start a basic block (and basic block
// We always schedule IfSuccess with its call, so skip it here. // start nodes are not handled in the ProcessNode method).
DCHECK_EQ(IrOpcode::kCall, node->InputAt(0)->opcode()); DCHECK_NE(IrOpcode::kIfSuccess, node->opcode());
// The IfSuccess node should not belong to an exceptional call node
// because such IfSuccess nodes should only start a basic block (and
// basic block start nodes are not handled in the ProcessNode method).
DCHECK(!NodeProperties::IsExceptionalCall(node->InputAt(0)));
return;
}
// If the node takes an effect, replace with the current one. // If the node takes an effect, replace with the current one.
if (node->op()->EffectInputCount() > 0) { if (node->op()->EffectInputCount() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment