| Index: src/compiler/common-operator-reducer.cc
|
| diff --git a/src/compiler/common-operator-reducer.cc b/src/compiler/common-operator-reducer.cc
|
| index e3c2ecad6ea10fe810e7c9e3e382fe9e5e0927e9..2334541f8adae64c18b45c8676eff1b041aef4f0 100644
|
| --- a/src/compiler/common-operator-reducer.cc
|
| +++ b/src/compiler/common-operator-reducer.cc
|
| @@ -204,6 +204,8 @@ Reduction CommonOperatorReducer::ReducePhi(Node* node) {
|
| if_false->opcode() == IrOpcode::kIfFalse &&
|
| if_true->InputAt(0) == if_false->InputAt(0)) {
|
| Node* const branch = if_true->InputAt(0);
|
| + // Check that the branch is not dead already.
|
| + if (branch->opcode() != IrOpcode::kBranch) return NoChange();
|
| Node* const cond = branch->InputAt(0);
|
| if (cond->opcode() == IrOpcode::kFloat32LessThan) {
|
| Float32BinopMatcher mcond(cond);
|
|
|