Fix bypass a->y->a chain with tya in middle

This commit is contained in:
drmortalwombat 2023-06-01 08:13:11 +02:00
parent 9e985f7f3d
commit d80518871a

View File

@ -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();