Browse Source

* fixed bug in regalloc info in case a sequence is swapped with
a storeback at the end (i.e., "mov x,y" ... "mov y,x")

git-svn-id: trunk@2197 -

Jonas Maebe 19 years ago
parent
commit
5692b93a52
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/i386/rropt386.pas

+ 2 - 0
compiler/i386/rropt386.pas

@@ -307,6 +307,8 @@ begin
         end;
       if switchLast then
         begin
+          lastreg1 := hp;
+          lastreg2 := hp;
           { this is in case of a storeback, make sure the same size of register }
           { contents as the initial move is transfered                          }
           doSwitchReg(taicpu(hp),reg1,reg2);