Fix bypass a->y->a chain with tya in middle
This commit is contained in:
parent
9e985f7f3d
commit
d80518871a
|
@ -33170,7 +33170,7 @@ bool NativeCodeBasicBlock::PeepHoleOptimizer(NativeCodeProcedure* proc, int pass
|
||||||
taxPos = -1; tayPos = -1;
|
taxPos = -1; tayPos = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
taxPos = -1;
|
tayPos = -1;
|
||||||
}
|
}
|
||||||
else if (mIns[i].RequiresXReg())
|
else if (mIns[i].RequiresXReg())
|
||||||
taxPos = -1;
|
taxPos = -1;
|
||||||
|
@ -40014,6 +40014,7 @@ void NativeCodeProcedure::Optimize(void)
|
||||||
ResetVisited();
|
ResetVisited();
|
||||||
mEntryBlock->RemoveUnusedResultInstructions();
|
mEntryBlock->RemoveUnusedResultInstructions();
|
||||||
|
|
||||||
|
|
||||||
#if _DEBUG
|
#if _DEBUG
|
||||||
ResetVisited();
|
ResetVisited();
|
||||||
mEntryBlock->CheckBlocks();
|
mEntryBlock->CheckBlocks();
|
||||||
|
|
Loading…
Reference in New Issue