From ecf2ad3e53c1ca9ce9486ba1adbd82c117a8473d Mon Sep 17 00:00:00 2001 From: "J. Gareth \"Curious Kit\" Moreton" Date: Fri, 3 Mar 2023 12:38:04 +0000 Subject: [PATCH] x86: Some oversights fixed where another iteration of pass 1 wasn't performed when it should have been --- compiler/x86/aoptx86.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/x86/aoptx86.pas b/compiler/x86/aoptx86.pas index e4d6230643..2269251b2e 100644 --- a/compiler/x86/aoptx86.pas +++ b/compiler/x86/aoptx86.pas @@ -4278,6 +4278,8 @@ unit aoptx86; hp3 := tai(hp2.Previous); RemoveInstruction(hp2); + Include(OptsToCheck, aoc_ForceNewIteration); + { See if there's more we can optimise } Continue; end @@ -4381,7 +4383,8 @@ unit aoptx86; { Same value - register hasn't changed } DebugMsg(SPeepholeOptimization + 'Mov2Nop 2 done', hp2); RemoveInstruction(hp2); - Result := True; + + Include(OptsToCheck, aoc_ForceNewIteration); { See if there's more we can optimise } Continue;