Compile-fun takes advantage of sorted output of "renumber", avoids CFA
authorAndy Wingo <wingo@pobox.com>
Tue, 1 Apr 2014 10:42:09 +0000 (12:42 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 1 Apr 2014 12:51:05 +0000 (14:51 +0200)
commita8430ab1d779278c08b389c566243a2ce013093a
tree1f965daeefbe401d80ba25ce3fa3fc0b1421e734
parent09220d215f4630e1735677adfe230f7ccf98a34f
Compile-fun takes advantage of sorted output of "renumber", avoids CFA

* module/language/cps/dfg.scm ($dfg): Rename nvars and nlabels fields to
  var-count and label-count.  Export dfg-min-var, dfg-min-label,
  dfg-label-count, dfg-var-count.

* module/language/cps/compile-bytecode.scm (compile-fun): No need to
  build a CFA given the renumbering pass.  Adapt to treat labels as
  ordered small integer in a contiguous vector.
module/language/cps/compile-bytecode.scm
module/language/cps/dfg.scm