diff options
Diffstat (limited to 'deps/v8/src/compiler/common-operator-reducer.cc')
-rw-r--r-- | deps/v8/src/compiler/common-operator-reducer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/common-operator-reducer.cc b/deps/v8/src/compiler/common-operator-reducer.cc index e3c2ecad6e..2334541f8a 100644 --- a/deps/v8/src/compiler/common-operator-reducer.cc +++ b/deps/v8/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); |