Browse Source

* better peephole optimization tracing

git-svn-id: trunk@34698 -
florian 8 years ago
parent
commit
57ca8647b3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/x86/aoptx86.pas

+ 3 - 1
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;