Procházet zdrojové kódy

Fix the edge of first_imaginary in move op

Jinyang He před 2 roky
rodič
revize
96f8bb33d1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      compiler/rgobj.pas

+ 2 - 2
compiler/rgobj.pas

@@ -1483,9 +1483,9 @@ unit rgobj;
        such as stack/framepointers, because otherwise they can be changed }
       else if (((u<first_imaginary) and adjacent_ok(u,v)) or
                conservative(u,v)) and
-              ((u>first_imaginary) or
+              ((u>=first_imaginary) or
                (u in usable_register_set)) and
-              ((v>first_imaginary) or
+              ((v>=first_imaginary) or
                (v in usable_register_set)) then
         begin
           m.moveset:=ms_coalesced_moves;  {Move coalesced!}