Skip to content

Commit f61a81a

Browse files
committed
Hoist constants
1 parent 3eb4f0e commit f61a81a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/Backend/GlobOpt.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14376,16 +14376,6 @@ 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-
1438914379
// Can't hoist these outside the function it's for. The LdArgumentsFromFrame for an inlinee depends on the inlinee meta arg
1439014380
// that holds the arguments object, which is only initialized at the start of the inlinee. So, can't hoist this outside the
1439114381
// inlinee.

0 commit comments

Comments
 (0)