mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
841d19e8b9
commit
d87f68a742
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user