compiler.cfg.stack-analysis: enable global optimization

db4
Slava Pestov 2009-06-30 18:11:45 -05:00
parent 4db44cd23f
commit 3355fa4809
1 changed files with 1 additions and 6 deletions

View File

@ -59,17 +59,12 @@ UNION: sync-if-back-edge
##dispatch
##loop-entry ;
SYMBOL: local-only?
t local-only? set-global
: back-edge? ( from to -- ? )
[ number>> ] bi@ > ;
: sync-state? ( -- ? )
basic-block get successors>>
[ [ predecessors>> ] keep '[ _ back-edge? ] any? ] any?
local-only? get or ;
[ [ predecessors>> ] keep '[ _ back-edge? ] any? ] any? ;
M: sync-if-back-edge visit
sync-state? [ sync-state ] when , ;