]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix regression
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Mon, 3 Nov 2008 06:03:15 +0000 (00:03 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Mon, 3 Nov 2008 06:03:15 +0000 (00:03 -0600)
basis/compiler/tree/cleanup/cleanup-tests.factor
basis/compiler/tree/cleanup/cleanup.factor

index b3ba62b73bf9daead2f47e140b48da11826088af..b77a27800fa285404e33c0a5d2eaf985fd4401b4 100644 (file)
@@ -5,7 +5,7 @@ strings sbufs sequences.private slots.private combinators
 definitions system layouts vectors math.partial-dispatch
 math.order math.functions accessors hashtables classes assocs
 io.encodings.utf8 io.encodings.ascii io.encodings fry slots
-sorting.private
+sorting.private combinators.short-circuit
 compiler.tree
 compiler.tree.combinators
 compiler.tree.cleanup
@@ -13,6 +13,7 @@ compiler.tree.builder
 compiler.tree.recursive
 compiler.tree.normalization
 compiler.tree.propagation
+compiler.tree.propagation.info
 compiler.tree.checker
 compiler.tree.debugger ;
 
@@ -494,3 +495,8 @@ cell-bits 32 = [
 [ t ] [
     [ hashtable new ] \ new inlined?
 ] unit-test
+
+[ t ] [
+    [ { array-capacity } declare 1 fixnum+ ] cleaned-up-tree
+    [ { [ #call? ] [ node-input-infos second literal>> 1 = ] } 1&& ] contains?
+] unit-test
index caf2a3692523bd4434c07916540b7d1084cc28d7..4ca058b2e393bdaef2f07ab46aaa572bd36b58dd 100644 (file)
@@ -78,7 +78,7 @@ GENERIC: cleanup* ( node -- node/nodes )
     } cond ;
 
 : remove-overflow-check ( #call -- #call )
-    [ in-d>> ] [ out-d>> ] [ word>> no-overflow-variant ] tri #call cleanup* ;
+    [ no-overflow-variant ] change-word cleanup* ;
 
 M: #call cleanup*
     {