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 20 năm trước cách đây
mục cha
commit
5692b93a52
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);