Pārlūkot izejas kodu

* avoid useless GetNextReg calls in second_cmp for avr

git-svn-id: trunk@22834 -
florian 12 gadi atpakaļ
vecāks
revīzija
f76ba05758
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5 2
      compiler/avr/navradd.pas

+ 5 - 2
compiler/avr/navradd.pas

@@ -193,12 +193,15 @@ interface
 
         for i:=2 to tcgsize2size[left.location.size] do
           begin
-            tmpreg1:=GetNextReg(tmpreg1);
-            tmpreg2:=GetNextReg(tmpreg2);
             if i=5 then
               begin
                 tmpreg1:=left.location.registerhi;
                 tmpreg2:=right.location.registerhi;
+              end
+            else
+              begin
+                tmpreg1:=GetNextReg(tmpreg1);
+                tmpreg2:=GetNextReg(tmpreg2);
               end;
             current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CPC,tmpreg1,tmpreg2));
           end;