mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 11:39:27 +02:00
+ cs_opt_consts for sparc64
This commit is contained in:
parent
5284948087
commit
1fa83a91ab
@ -608,9 +608,9 @@ unit optcse;
|
||||
Result:=(n.nodetype=loadn) and (tloadnode(n).symtableentry.typ=staticvarsym)
|
||||
and ((vo_is_thread_var in tstaticvarsym(tloadnode(n).symtableentry).varoptions) or
|
||||
(cs_create_pic in current_settings.moduleswitches)
|
||||
{$if defined(aarch64) or defined(sparc)}
|
||||
{$if defined(aarch64) or defined(sparc) or defined(sparc64)}
|
||||
or (not(tabstractvarsym(tloadnode(n).symtableentry).is_regvar(false)))
|
||||
{$endif defined(aarch64) or defined(sparc)}
|
||||
{$endif defined(aarch64) or defined(sparc) or defined(sparc64)}
|
||||
);
|
||||
end;
|
||||
|
||||
|
@ -103,7 +103,7 @@ Const
|
||||
|
||||
level1optimizerswitches = genericlevel1optimizerswitches;
|
||||
level2optimizerswitches = genericlevel2optimizerswitches + level1optimizerswitches +
|
||||
[{$ifndef llvm}cs_opt_regvar,{$endif}cs_opt_tailrecursion,cs_opt_nodecse];
|
||||
[{$ifndef llvm}cs_opt_regvar,{$endif}cs_opt_tailrecursion,cs_opt_nodecse,cs_opt_consts];
|
||||
level3optimizerswitches = genericlevel3optimizerswitches + level2optimizerswitches;
|
||||
level4optimizerswitches = genericlevel4optimizerswitches + level3optimizerswitches + [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user