From 524659b341d6002a917fe1cd7fbf241a0133348b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Tue, 3 May 2016 23:55:27 +0000 Subject: [PATCH] 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 - --- compiler/m68k/n68kmem.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/m68k/n68kmem.pas b/compiler/m68k/n68kmem.pas index 63049bc4f0..af702b850d 100644 --- a/compiler/m68k/n68kmem.pas +++ b/compiler/m68k/n68kmem.pas @@ -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