]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.cfg.checker: eliminate dead code before checking MR
authorSlava Pestov <slava@shill.local>
Thu, 23 Jul 2009 00:17:57 +0000 (19:17 -0500)
committerSlava Pestov <slava@shill.local>
Thu, 23 Jul 2009 00:17:57 +0000 (19:17 -0500)
basis/compiler/cfg/checker/checker.factor

index f4738c675c10b94e27056f4bb8158290844c7682..53f84b1dda1aa207e9a4166c49921fc4155d63b2 100644 (file)
@@ -2,8 +2,8 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel compiler.cfg.instructions compiler.cfg.rpo
 compiler.cfg.def-use compiler.cfg.linearization compiler.cfg.utilities
-compiler.cfg.mr combinators.short-circuit accessors math sequences
-sets assocs ;
+compiler.cfg.dce compiler.cfg.mr combinators.short-circuit accessors
+math sequences sets assocs ;
 IN: compiler.cfg.checker
 
 ERROR: bad-kill-block bb ;
@@ -64,5 +64,5 @@ ERROR: undefined-values uses defs ;
 
 : check-cfg ( cfg -- )
     [ [ check-basic-block ] each-basic-block ]
-    [ build-mr check-mr ]
+    [ eliminate-dead-code build-mr check-mr ]
     bi ;