From 57ca8647b301c4b69f49fafa7525b0d91112a018 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 9 Oct 2016 13:41:38 +0000 Subject: [PATCH] * better peephole optimization tracing git-svn-id: trunk@34698 - --- compiler/x86/aoptx86.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/x86/aoptx86.pas b/compiler/x86/aoptx86.pas index 1509eefc6b..d4d5453685 100644 --- a/compiler/x86/aoptx86.pas +++ b/compiler/x86/aoptx86.pas @@ -582,6 +582,7 @@ unit aoptx86; mov %reg, y } taicpu(p).loadOper(1,taicpu(hp1).oper[1]^); + DebugMsg('PeepHole Optimization,MovMov2Mov 2',p); asml.remove(hp1); hp1.free; ReleaseUsedRegs(TmpUsedRegs); @@ -599,6 +600,7 @@ unit aoptx86; mov mem, %reg" } taicpu(p).loadoper(1,taicpu(hp1).oper[1]^); + DebugMsg('PeepHole Optimization,MovMov2Mov 3',p); asml.remove(hp1); hp1.free; ReleaseUsedRegs(TmpUsedRegs); @@ -748,7 +750,7 @@ unit aoptx86; begin if (taicpu(p).oper[0]^.typ = top_reg) then AllocRegBetween(taicpu(p).oper[0]^.reg,p,hp1,usedregs); - DebugMsg('PeepHole Optimization,MovMov2Mov1',p); + DebugMsg('PeepHole Optimization,MovMov2Mov 1',p); asml.remove(hp1); hp1.free; Result:=true;