Bug 1512491 - Part 2: Hoist access to MConstantElements. r=nbp

Depends on D24351

Differential Revision: https://phabricator.services.mozilla.com/D24352

--HG--
extra : moz-landing-system : lando
This commit is contained in:
André Bargull 2019-03-25 17:55:37 +00:00
parent 841d19e8b9
commit d87f68a742

View File

@ -62,10 +62,6 @@ static bool IsInLoop(MDefinition* ins) { return ins->block()->isMarked(); }
// Test whether the given instruction is cheap and not worth hoisting unless
// one of its users will be hoisted as well.
static bool RequiresHoistedUse(const MDefinition* ins, bool hasCalls) {
if (ins->isConstantElements()) {
return true;
}
if (ins->isBox()) {
MOZ_ASSERT(!ins->toBox()->input()->isBox(),
"Box of a box could lead to unbounded recursion");