浏览代码

* MovMov2MovMov1 requires that the allocation of the first register is extended

git-svn-id: trunk@33948 -
florian 9 年之前
父节点
当前提交
2890927b10
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/x86/aoptx86.pas

+ 1 - 0
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