diff --git a/src/compiler/loop-variable-optimizer.cc b/src/compiler/loop-variable-optimizer.cc index 07e026eb73..70efc4d30d 100644 --- a/src/compiler/loop-variable-optimizer.cc +++ b/src/compiler/loop-variable-optimizer.cc @@ -310,7 +310,8 @@ InductionVariable* LoopVariableOptimizer::TryGetInductionVariable(Node* phi) { arith->opcode() == IrOpcode::kSpeculativeSafeIntegerAdd) { arithmeticType = InductionVariable::ArithmeticType::kAddition; } else if (arith->opcode() == IrOpcode::kJSSubtract || - arith->opcode() == IrOpcode::kSpeculativeNumberSubtract) { + arith->opcode() == IrOpcode::kSpeculativeNumberSubtract || + arith->opcode() == IrOpcode::kSpeculativeSafeIntegerSubtract) { arithmeticType = InductionVariable::ArithmeticType::kSubtraction; } else { return nullptr;