Commit ae1a74be authored by Jan de Mooij's avatar Jan de Mooij Committed by dsmith@mozilla.com
Browse files

Bug 1966614 - Don't support modulo math space in ExtractLinearSum. r=iain, a=dsmith

parent 7fb93bfa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3632,6 +3632,10 @@ SimpleLinearSum jit::ExtractLinearSum(MDefinition* ins, MathSpace space,
  }
  MOZ_ASSERT(space == MathSpace::Modulo || space == MathSpace::Infinite);

  if (space == MathSpace::Modulo) {
    return SimpleLinearSum(ins, 0);
  }

  MDefinition* lhs = ins->getOperand(0);
  MDefinition* rhs = ins->getOperand(1);
  if (lhs->type() != MIRType::Int32 || rhs->type() != MIRType::Int32) {