From ef32eb2e72b5b5523c4fed4e06818f16170d36ed Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 26 Jun 2009 17:44:33 -0500 Subject: [PATCH] Fix bootstrap and unit test --- basis/compiler/cfg/optimizer/optimizer.factor | 1 - .../compiler/cfg/stack-analysis/stack-analysis-tests.factor | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/basis/compiler/cfg/optimizer/optimizer.factor b/basis/compiler/cfg/optimizer/optimizer.factor index 60c2380f7e..e789fc9c21 100644 --- a/basis/compiler/cfg/optimizer/optimizer.factor +++ b/basis/compiler/cfg/optimizer/optimizer.factor @@ -3,7 +3,6 @@ USING: kernel sequences accessors combinators namespaces compiler.cfg.predecessors compiler.cfg.useless-blocks -compiler.cfg.height compiler.cfg.stack-analysis compiler.cfg.alias-analysis compiler.cfg.value-numbering diff --git a/basis/compiler/cfg/stack-analysis/stack-analysis-tests.factor b/basis/compiler/cfg/stack-analysis/stack-analysis-tests.factor index cb0a800927..e01d870bf2 100644 --- a/basis/compiler/cfg/stack-analysis/stack-analysis-tests.factor +++ b/basis/compiler/cfg/stack-analysis/stack-analysis-tests.factor @@ -2,7 +2,7 @@ USING: prettyprint compiler.cfg.debugger compiler.cfg.linearization compiler.cfg.predecessors compiler.cfg.stack-analysis compiler.cfg.instructions sequences kernel tools.test accessors sequences.private alien math combinators.private compiler.cfg -compiler.cfg.checker compiler.cfg.height compiler.cfg.rpo +compiler.cfg.checker compiler.cfg.rpo compiler.cfg.dce compiler.cfg.registers compiler.cfg.useless-blocks sets namespaces arrays cpu.architecture ; IN: compiler.cfg.stack-analysis.tests @@ -25,7 +25,6 @@ IN: compiler.cfg.stack-analysis.tests compute-predecessors delete-useless-blocks delete-useless-conditionals - normalize-height stack-analysis dup check-cfg dup check-for-redundant-ops ; @@ -115,10 +114,11 @@ local-only? off ] unit-test ! Correct height tracking -[ D 1 D 0 ] [ +[ t ] [ [ pick [ ] [ drop ] if swap ] test-stack-analysis eliminate-dead-code reverse-post-order 2 swap nth instructions>> [ ##peek? ] filter first2 [ loc>> ] [ loc>> ] bi* + 2array { D 1 D 0 } set= ] unit-test [ D 1 ] [