Fix DFG compute-reachable bug
authorAndy Wingo <wingo@pobox.com>
Tue, 1 Apr 2014 18:55:31 +0000 (20:55 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 1 Apr 2014 18:55:31 +0000 (20:55 +0200)
* module/language/cps/dfg.scm (compute-reachable): Fix embarassing bug
  where we wouldn't actually iterate to fixpoint.  I haven't seen it
  yet, but that's just luck...

module/language/cps/dfg.scm

index 4f32fce..c390427 100644 (file)
@@ -231,7 +231,7 @@ for quickest convergence."
         (cond
          ((zero? n)
           (if changed?
-              (lp 0 #f)
+              (lp k-count #f)
               reachable))
          (else
           (let ((n (1- n)))