mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 08:28:09 +02:00
* don't apply cse on static variables being regable
git-svn-id: trunk@23785 -
This commit is contained in:
parent
c2baf7b4c0
commit
2c7b34cda1
@ -179,7 +179,9 @@ unit optcse;
|
||||
current stack frame, those are in registers anyways if possible
|
||||
}
|
||||
(not(n.nodetype=loadn) or
|
||||
not(tloadnode(n).symtableentry.typ in [paravarsym,localvarsym]) or
|
||||
not(tloadnode(n).symtableentry.typ in [paravarsym,localvarsym,staticvarsym]) or
|
||||
{ apply cse on non-regable static variables }
|
||||
((tloadnode(n).symtableentry.typ=staticvarsym) and (tstaticvarsym(tloadnode(n).symtableentry).varregable=vr_none)) or
|
||||
(node_complexity(n)>1)
|
||||
) and
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user