mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 09:28:19 +02:00
* fixed and released optimization to prevent some superfluous
parameter copying for ppc32/ppc64 git-svn-id: trunk@4186 -
This commit is contained in:
parent
4861472e7b
commit
743b05e911
@ -322,12 +322,13 @@ implementation
|
||||
newparaloc:=cgpara.add_location;
|
||||
newparaloc^.size:=paraloc^.size;
|
||||
{$warning maybe release this optimization for all targets?}
|
||||
{$ifdef sparc}
|
||||
{$if defined(sparc) or defined(powerpc) or defined(powerpc64)}
|
||||
{ Does it fit a register? }
|
||||
if len<=sizeof(aint) then
|
||||
if (len<=sizeof(aint)) and
|
||||
(cgpara.size in [OS_8,OS_16,OS_32,OS_64,OS_128,OS_S8,OS_S16,OS_S32,OS_S64,OS_S128]) then
|
||||
newparaloc^.loc:=LOC_REGISTER
|
||||
else
|
||||
{$endif sparc}
|
||||
{$endif defined(sparc) or defined(powerpc) or defined(powerpc64) }
|
||||
newparaloc^.loc:=paraloc^.loc;
|
||||
case newparaloc^.loc of
|
||||
LOC_REGISTER :
|
||||
|
Loading…
Reference in New Issue
Block a user