2010-04-27 10:51:00 -04:00
|
|
|
! Copyright (C) 2008, 2010 Slava Pestov.
|
2008-10-22 19:41:37 -04:00
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2010-04-28 04:47:38 -04:00
|
|
|
USING: compiler.cfg.tco
|
2009-06-30 23:11:15 -04:00
|
|
|
compiler.cfg.useless-conditionals
|
|
|
|
compiler.cfg.branch-splitting
|
2009-07-16 03:17:58 -04:00
|
|
|
compiler.cfg.block-joining
|
2010-02-24 15:20:43 -05:00
|
|
|
compiler.cfg.height
|
2009-07-28 10:34:08 -04:00
|
|
|
compiler.cfg.ssa.construction
|
2008-10-22 22:59:07 -04:00
|
|
|
compiler.cfg.alias-analysis
|
|
|
|
compiler.cfg.value-numbering
|
2009-07-24 06:30:46 -04:00
|
|
|
compiler.cfg.copy-prop
|
2009-05-26 20:31:19 -04:00
|
|
|
compiler.cfg.dce
|
2010-05-03 18:29:03 -04:00
|
|
|
compiler.cfg.write-barrier ;
|
2008-10-22 19:41:37 -04:00
|
|
|
IN: compiler.cfg.optimizer
|
|
|
|
|
2009-05-29 14:11:34 -04:00
|
|
|
: optimize-cfg ( cfg -- cfg' )
|
2009-08-08 21:02:56 -04:00
|
|
|
optimize-tail-calls
|
|
|
|
delete-useless-conditionals
|
|
|
|
split-branches
|
|
|
|
join-blocks
|
2010-02-24 15:20:43 -05:00
|
|
|
normalize-height
|
2009-08-08 21:02:56 -04:00
|
|
|
construct-ssa
|
|
|
|
alias-analysis
|
|
|
|
value-numbering
|
|
|
|
copy-propagation
|
|
|
|
eliminate-dead-code
|
2010-04-28 04:47:38 -04:00
|
|
|
eliminate-write-barriers ;
|