mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[js] Fix Sink to check for non-recoverable operands.
This commit is contained in:
parent
52c03190ee
commit
51d75f257d
1 changed files with 5 additions and 1 deletions
|
|
@ -71,8 +71,12 @@ Sink(MIRGenerator* mir, MIRGraph& graph)
|
|||
for (MUseIterator i(ins->usesBegin()), e(ins->usesEnd()); i != e; i++) {
|
||||
hasUses = true;
|
||||
MNode* consumerNode = (*i)->consumer();
|
||||
if (consumerNode->isResumePoint())
|
||||
if (consumerNode->isResumePoint()) {
|
||||
if (!consumerNode->toResumePoint()->isRecoverableOperand(*i)) {
|
||||
hasLiveUses = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
MDefinition* consumer = consumerNode->toDefinition();
|
||||
if (consumer->isRecoveredOnBailout())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue