瀏覽代碼

* use InstructionLoadsFromReg instead of RegInInstruction when moving register deallocations

git-svn-id: trunk@33541 -
florian 9 年之前
父節點
當前提交
4ac3953c34
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/aopt.pas

+ 1 - 1
compiler/aopt.pas

@@ -189,7 +189,7 @@ Unit aopt;
                         hp2 := nil;
                         While Not(assigned(FindRegAlloc(tai_regalloc(p).Reg, tai(hp1.Next)))) And
                               GetNextInstruction(hp1, hp1) And
-                              RegInInstruction(tai_regalloc(p).Reg, hp1) Do
+                              InstructionLoadsFromReg(tai_regalloc(p).Reg, hp1) Do
                           hp2 := hp1;
                         { move deallocations }
                         If hp2 <> nil Then