compiler.tree.propagation: cleanup known-words a bit.

db4
John Benediktsson 2012-10-05 09:47:27 -07:00
parent 28f36a25b0
commit 80b39bd4f2
1 changed files with 4 additions and 7 deletions
basis/compiler/tree/propagation/known-words

View File

@ -29,7 +29,7 @@ IN: compiler.tree.propagation.known-words
\ /mod { rational rational } "input-classes" set-word-prop
{ bitand bitor bitxor bitnot shift }
{ bitand bitor bitxor shift }
[ { integer integer } "input-classes" set-word-prop ] each
\ bitnot { integer } "input-classes" set-word-prop
@ -240,12 +240,9 @@ generic-comparison-ops [
'[ _ swap interval>> <class/interval-info> ] "outputs" set-word-prop
] assoc-each
{ numerator denominator }
[ [ drop integer <class-info> ] "outputs" set-word-prop ] each
\ >fraction [
drop integer <class-info> dup
] "outputs" set-word-prop
{ numerator denominator >fraction } [
{ integer } "default-output-classes" set-word-prop
] each
{ (log2) fixnum-log2 bignum-log2 } [
[