DCE uses type analysis to elide type checks
authorAndy Wingo <wingo@pobox.com>
Wed, 14 May 2014 14:59:08 +0000 (16:59 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 15 May 2014 15:39:24 +0000 (17:39 +0200)
commit3be43fb782957d5916c4ad236533ac29ffe0f1ce
tree9fc399a299b78f7bb4867e0c17150a98a999d9e4
parenta7ee377dbe40403fbc40d40309b89dc6e748e9b0
DCE uses type analysis to elide type checks

* module/language/cps/dce.scm (elide-type-checks!, compute-live-code):
  Replace old ad-hoc type check elision with one driven from type
  analysis.  Type check elision only operates on smallish functions, to
  avoid n**2 explosion in type inference.
module/language/cps/dce.scm