Bug 1054974 - Don't recover instructions which have the Guard flag, r=nbp

This commit is contained in:
Hannes Verschore 2014-08-18 13:52:12 +02:00
parent 01a9c34e1b
commit f7a57cc5e2

View File

@ -553,8 +553,8 @@ jit::EliminateDeadCode(MIRGenerator *mir, MIRGraph &graph)
!inst->isControlInstruction())
{
inst = block->discardAt(inst);
} else if (!inst->isRecoveredOnBailout() && !inst->hasLiveDefUses() &&
inst->canRecoverOnBailout())
} else if (!inst->isRecoveredOnBailout() && !inst->isGuard() &&
!inst->hasLiveDefUses() && inst->canRecoverOnBailout())
{
inst->setRecoveredOnBailout();
inst++;