Export new funcs

This commit is contained in:
Justin Ethier 2019-09-16 22:52:56 -04:00
parent e45837a19f
commit 2816a4771e

View file

@ -116,6 +116,8 @@
is-mutable? is-mutable?
analyze-mutable-variables analyze-mutable-variables
wrap-mutables wrap-mutables
mark-mutated-loop-var
mutated-loop-var?
) )
(include "cps-opt-local-var-redux.scm") (include "cps-opt-local-var-redux.scm")
(include "cps-opt-analyze-call-graph.scm") (include "cps-opt-analyze-call-graph.scm")
@ -2534,6 +2536,7 @@
;; var may be used for a recursive loop. ;; var may be used for a recursive loop.
(when (and (= 2 (length exp)) (when (and (= 2 (length exp))
(ast:lambda? (car exp)) (ast:lambda? (car exp))
#f ;; TEmporarily disabled
(not (cadr exp))) (not (cadr exp)))
;; Candidate, see if the var is set to a lambda ;; Candidate, see if the var is set to a lambda
(with-var (car (ast:lambda-formals->list (car exp))) (lambda (var) (with-var (car (ast:lambda-formals->list (car exp))) (lambda (var)