basis: use harvest-values
parent
434f08a303
commit
76cb13ac52
|
@ -128,7 +128,7 @@ M: vreg-insn compute-insn-costs
|
||||||
] each-basic-block ;
|
] each-basic-block ;
|
||||||
|
|
||||||
: minimize-costs ( costs -- representations )
|
: minimize-costs ( costs -- representations )
|
||||||
[ nip assoc-empty? ] assoc-reject
|
harvest-values
|
||||||
[ >alist alist-min first ] assoc-map ;
|
[ >alist alist-min first ] assoc-map ;
|
||||||
|
|
||||||
: compute-representations ( cfg -- )
|
: compute-representations ( cfg -- )
|
||||||
|
|
|
@ -66,7 +66,7 @@ TUPLE: parts in out ;
|
||||||
dup new-transitions '[
|
dup new-transitions '[
|
||||||
[
|
[
|
||||||
_ swap '[ _ get-transitions ] assoc-map
|
_ swap '[ _ get-transitions ] assoc-map
|
||||||
[ nip empty? ] assoc-reject
|
harvest-values
|
||||||
] preserving-epsilon
|
] preserving-epsilon
|
||||||
] assoc-map
|
] assoc-map
|
||||||
] change-transitions ;
|
] change-transitions ;
|
||||||
|
|
Loading…
Reference in New Issue