2015-06-14 01:40:17 -04:00
USING: compiler.tree help.markup help.syntax kernel sequences ;
2014-04-24 15:35:04 -04:00
IN: compiler.tree.cleanup
2015-06-14 01:40:17 -04:00
HELP: cleanup-folding?
{ $values { "#call" #call } { "?" boolean } }
{ $description "Checks if a " { $link #call } " node can be folded." } ;
2014-04-24 15:35:04 -04:00
2015-06-06 00:22:50 -04:00
HELP: cleanup-tree
2014-05-10 19:45:07 -04:00
{ $values { "nodes" sequence } { "nodes'" sequence } }
2015-06-06 00:22:50 -04:00
{ $description "Main entry point for the cleanup-tree optimization phase." } ;
2015-06-14 01:40:17 -04:00
ARTICLE: "compiler.tree.cleanup" "Cleanup Phase"
"A phase run after propagation to finish the job, so to speak. Codifies speculative inlining decisions, deletes branches marked as never taken, and flattens local recursive blocks that do not call themselves." ;
ABOUT: "compiler.tree.cleanup"