diff --git a/basis/compiler/cfg/cfg.factor b/basis/compiler/cfg/cfg.factor index 68d7e15a5d..12a1180d40 100644 --- a/basis/compiler/cfg/cfg.factor +++ b/basis/compiler/cfg/cfg.factor @@ -48,6 +48,9 @@ SYMBOL: visited building get push ] with-variable ; inline +: back-edge? ( from to -- ? ) + [ number>> ] bi@ > ; + TUPLE: cfg { entry basic-block } word label spill-counts post-order ; : ( entry word label -- cfg ) f f cfg boa ; diff --git a/basis/compiler/cfg/stack-analysis/stack-analysis.factor b/basis/compiler/cfg/stack-analysis/stack-analysis.factor index fb71fe332d..ab16bbea44 100644 --- a/basis/compiler/cfg/stack-analysis/stack-analysis.factor +++ b/basis/compiler/cfg/stack-analysis/stack-analysis.factor @@ -60,9 +60,6 @@ UNION: sync-if-back-edge ##dispatch ##loop-entry ; -: back-edge? ( from to -- ? ) - [ number>> ] bi@ > ; - : sync-state? ( -- ? ) basic-block get successors>> [ [ predecessors>> ] keep '[ _ back-edge? ] any? ] any? ;