| Index: src/compiler/instruction-selector.cc
|
| diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
|
| index 88cc2e536cfe5345f54f4f04a7e3693caa660316..ea68c78fc11b984b7714a0918801ea17fdabf524 100644
|
| --- a/src/compiler/instruction-selector.cc
|
| +++ b/src/compiler/instruction-selector.cc
|
| @@ -713,6 +713,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);
|
|
|