mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 08:59:25 +02:00
+ store pic references in registers if possible
This commit is contained in:
parent
d6cf3c98d0
commit
70d2f81e5e
@ -606,7 +606,8 @@ unit optcse;
|
||||
function CSEOnReference(n : tnode) : Boolean;
|
||||
begin
|
||||
Result:=(n.nodetype=loadn) and (tloadnode(n).symtableentry.typ=staticvarsym)
|
||||
and ((vo_is_thread_var in tstaticvarsym(tloadnode(n).symtableentry).varoptions)
|
||||
and ((vo_is_thread_var in tstaticvarsym(tloadnode(n).symtableentry).varoptions) or
|
||||
(cs_create_pic in current_settings.moduleswitches)
|
||||
{$if defined(aarch64)}
|
||||
or (not(tabstractvarsym(tloadnode(n).symtableentry).is_regvar(false)))
|
||||
{$endif defined(aarch64)}
|
||||
|
Loading…
Reference in New Issue
Block a user