Skip to content

Commit 726c431

Browse files
committed
Re-enable #if 0 block for generator and normal functions
1 parent af0609c commit 726c431

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Backend/GlobOpt.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3038,13 +3038,11 @@ GlobOpt::OptDst(
30383038
else if (dstVal)
30393039
{
30403040
opnd->SetValueType(dstVal->GetValueInfo()->Type());
3041-
#if 0
3042-
if(currentBlock->loop &&
3041+
if (currentBlock->loop &&
30433042
!IsLoopPrePass() &&
30443043
(instr->m_opcode == Js::OpCode::Ld_A || instr->m_opcode == Js::OpCode::Ld_I4) &&
30453044
instr->GetSrc1()->IsRegOpnd() &&
3046-
!func->IsJitInDebugMode() &&
3047-
this->GetJITFunctionBody()->IsCoroutine())
3045+
!func->IsJitInDebugMode())
30483046
{
30493047
// Look for the following patterns:
30503048
//
@@ -3108,7 +3106,6 @@ GlobOpt::OptDst(
31083106
this->SetSymStoreDirect(dstVal->GetValueInfo(), dstVarSym);
31093107
} while(false);
31103108
}
3111-
#endif
31123109
}
31133110

31143111
this->ValueNumberObjectType(opnd, instr);

0 commit comments

Comments
 (0)