mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +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++) {
|
for (MUseIterator i(ins->usesBegin()), e(ins->usesEnd()); i != e; i++) {
|
||||||
hasUses = true;
|
hasUses = true;
|
||||||
MNode* consumerNode = (*i)->consumer();
|
MNode* consumerNode = (*i)->consumer();
|
||||||
if (consumerNode->isResumePoint())
|
if (consumerNode->isResumePoint()) {
|
||||||
|
if (!consumerNode->toResumePoint()->isRecoverableOperand(*i)) {
|
||||||
|
hasLiveUses = true;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
MDefinition* consumer = consumerNode->toDefinition();
|
MDefinition* consumer = consumerNode->toDefinition();
|
||||||
if (consumer->isRecoveredOnBailout())
|
if (consumer->isRecoveredOnBailout())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue