Skip to content

Commit d1dc14e

Browse files
committed
Revert last commit f61a81a
1 parent f61a81a commit d1dc14e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Backend/GlobOpt.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14376,6 +14376,16 @@ GlobOpt::OptIsInvariant(
1437614376
case Js::OpCode::BailOnNotStackArgs:
1437714377
return false;
1437814378

14379+
// Usually not worth hoisting these
14380+
case Js::OpCode::Ld_A:
14381+
case Js::OpCode::Ld_I4:
14382+
case Js::OpCode::LdC_A_I4:
14383+
if(!forceInvariantHoisting)
14384+
{
14385+
return false;
14386+
}
14387+
break;
14388+
1437914389
// Can't hoist these outside the function it's for. The LdArgumentsFromFrame for an inlinee depends on the inlinee meta arg
1438014390
// that holds the arguments object, which is only initialized at the start of the inlinee. So, can't hoist this outside the
1438114391
// inlinee.

0 commit comments

Comments
 (0)