Bug fixes for lcs.diff2html; xml.writer
[factor/jcg.git] / basis / compiler / cfg / predecessors / predecessors.factor
blob01a2a771bc224131642ebf00e7a4a37e431588e1
1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel accessors sequences compiler.cfg.rpo ;
4 IN: compiler.cfg.predecessors
6 : (compute-predecessors) ( bb -- )
7     dup successors>> [ predecessors>> push ] with each ;
9 : compute-predecessors ( cfg -- cfg' )
10     dup [ (compute-predecessors) ] each-basic-block ;