| Index: src/compiler/instruction-selector.cc
|
| diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
|
| index d172ed18588edda1aacd78df77df753ca53d80cf..b7162fe5dcc5870f2311a3cac3890a3344152efd 100644
|
| --- a/src/compiler/instruction-selector.cc
|
| +++ b/src/compiler/instruction-selector.cc
|
| @@ -714,6 +714,12 @@ void InstructionSelector::VisitBlock(BasicBlock* block) {
|
| SetEffectLevel(node, effect_level);
|
| }
|
|
|
| + // We visit the control first, then the nodes in the block, so the block's
|
| + // control input should be on the same effect level as the last node.
|
| + if (block->control_input() != nullptr) {
|
| + SetEffectLevel(block->control_input(), effect_level);
|
| + }
|
| +
|
| // Generate code for the block control "top down", but schedule the code
|
| // "bottom up".
|
| VisitControl(block);
|
|
|