mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1011283 - IonMonkey: Disable the DivOrModConstantI optimization. r=nbp
This commit is contained in:
parent
c214d0f55e
commit
773eaf4b9a
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user