Bug 1011283 - IonMonkey: Disable the DivOrModConstantI optimization. r=nbp

This commit is contained in:
Dan Gohman 2014-06-20 17:51:40 -07:00
parent c214d0f55e
commit 773eaf4b9a

View File

@ -155,12 +155,6 @@ LIRGeneratorX86Shared::lowerDivI(MDiv *div)
if (div->fallible() && !assignSnapshot(lir, Bailout_DoubleOutput))
return false;
return defineReuseInput(lir, div, 0);
} else if (rhs != 0) {
LDivOrModConstantI *lir;
lir = new(alloc()) LDivOrModConstantI(useRegister(div->lhs()), rhs, tempFixed(eax));
if (div->fallible() && !assignSnapshot(lir, Bailout_DoubleOutput))
return false;
return defineFixed(lir, div, LAllocation(AnyRegister(edx)));
}
}
@ -185,12 +179,6 @@ LIRGeneratorX86Shared::lowerModI(MMod *mod)
if (mod->fallible() && !assignSnapshot(lir, Bailout_DoubleOutput))
return false;
return defineReuseInput(lir, mod, 0);
} else if (rhs != 0) {
LDivOrModConstantI *lir;
lir = new(alloc()) LDivOrModConstantI(useRegister(mod->lhs()), rhs, tempFixed(edx));
if (mod->fallible() && !assignSnapshot(lir, Bailout_DoubleOutput))
return false;
return defineFixed(lir, mod, LAllocation(AnyRegister(eax)));
}
}