From 2890927b1059d0ec8f61a27086d63cdaf8ecb1e1 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 11 Jun 2016 19:54:18 +0000 Subject: [PATCH] * MovMov2MovMov1 requires that the allocation of the first register is extended git-svn-id: trunk@33948 - --- compiler/x86/aoptx86.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/x86/aoptx86.pas b/compiler/x86/aoptx86.pas index fd9042b871..a69f22000a 100644 --- a/compiler/x86/aoptx86.pas +++ b/compiler/x86/aoptx86.pas @@ -786,6 +786,7 @@ unit aoptx86; else if (taicpu(p).oper[1]^.typ=top_ref) and OpsEqual(taicpu(hp1).oper[0]^,taicpu(p).oper[1]^) then begin + AllocRegBetween(taicpu(p).oper[0]^.reg,p,hp1,UsedRegs); taicpu(hp1).loadreg(0,taicpu(p).oper[0]^.reg); DebugMsg('PeepHole Optimization,MovMov2MovMov1',p); end