Browse Source

* don't use 8 byte copies in concatcopy by default, because
a misaligned 8 byte load/store is much more expensive than
a misaligned 4 byte load/store

git-svn-id: trunk@8182 -

Jonas Maebe 18 years ago
parent
commit
ceeac6e8e4
1 changed files with 6 additions and 6 deletions
  1. 6 6
      compiler/powerpc/cgcpu.pas

+ 6 - 6
compiler/powerpc/cgcpu.pas

@@ -1493,13 +1493,13 @@ const
 
 
 { ************* concatcopy ************ }
 { ************* concatcopy ************ }
 
 
-{$ifndef ppc603}
+{$ifndef use8byteconcatcopy}
   const
   const
     maxmoveunit = 8;
     maxmoveunit = 8;
-{$else ppc603}
+{$else use8byteconcatcopy}
   const
   const
     maxmoveunit = 4;
     maxmoveunit = 4;
-{$endif ppc603}
+{$endif use8byteconcatcopy}
 
 
     procedure tcgppc.g_concatcopy(list : TAsmList;const source,dest : treference;len : aint);
     procedure tcgppc.g_concatcopy(list : TAsmList;const source,dest : treference;len : aint);
 
 
@@ -1569,7 +1569,7 @@ const
             dst := dest;
             dst := dest;
           end;
           end;
 
 
-{$ifndef ppc603}
+{$ifndef use8byteconcatcopy}
         if count > 4 then
         if count > 4 then
           { generate a loop }
           { generate a loop }
           begin
           begin
@@ -1619,7 +1619,7 @@ const
             inc(dst.offset,4);
             inc(dst.offset,4);
             a_reg_dealloc(list,NR_R0);
             a_reg_dealloc(list,NR_R0);
           end;
           end;
-{$else not ppc603}
+{$else not use8byteconcatcopy}
         if count > 4 then
         if count > 4 then
           { generate a loop }
           { generate a loop }
           begin
           begin
@@ -1661,7 +1661,7 @@ const
             a_reg_dealloc(list,NR_R0);
             a_reg_dealloc(list,NR_R0);
             len := len mod 4;
             len := len mod 4;
           end;
           end;
-{$endif not ppc603}
+{$endif not use8byteconcatcopy}
        { copy the leftovers }
        { copy the leftovers }
        if (len and 2) <> 0 then
        if (len and 2) <> 0 then
          begin
          begin