Browse Source

* use InstructionLoadsFromReg instead of RegInInstruction when moving register deallocations

git-svn-id: trunk@33541 -
florian 9 years ago
parent
commit
4ac3953c34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/aopt.pas

+ 1 - 1
compiler/aopt.pas

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