mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 05:58:24 +02:00
m68k: if we have a symbol in the location reference, that will be base, so try to insert an index register instead, reduces the amount of data->address register shuffling in the generated code
git-svn-id: trunk@33647 -
This commit is contained in:
parent
671eed3070
commit
524659b341
@ -90,7 +90,7 @@ implementation
|
||||
end;
|
||||
end;
|
||||
|
||||
if (location.reference.base=NR_NO) and not (scaled) then
|
||||
if (location.reference.base=NR_NO) and not (scaled) and not assigned(location.reference.symbol) then
|
||||
begin
|
||||
{ prefer an address reg, if we will be a base, for indexes any register works }
|
||||
if isintregister(maybe_const_reg) then
|
||||
|
Loading…
Reference in New Issue
Block a user