소스 검색

* optimization Move removed 4 fixed

git-svn-id: trunk@43493 -
florian 5 년 전
부모
커밋
a969097a80
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/mips/aoptcpu.pas

+ 2 - 1
compiler/mips/aoptcpu.pas

@@ -25,7 +25,7 @@ unit aoptcpu;
 
 {$i fpcdefs.inc}
 
-{ $define DEBUG_AOPTCPU}
+{$define DEBUG_AOPTCPU}
 
   Interface
 
@@ -340,6 +340,7 @@ unit aoptcpu;
         Assigned(FindRegDealloc(taicpu(p).oper[0]^.reg,tai(next.next)));
       if result then
         begin
+          AllocRegBetween(taicpu(p).oper[1]^.reg,p,next,UsedRegs);
           next.oper[1]^.ref^.base:=taicpu(p).oper[1]^.reg;
           DebugMsg('Peephole: Move removed 4',p);
           asml.remove(p);