mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
Call CPS optimization code from main program
This commit is contained in:
parent
4c2b56b19e
commit
c44d5d5427
2 changed files with 7 additions and 5 deletions
|
@ -211,7 +211,12 @@
|
|||
;; phase 5 - common subexpression elimination
|
||||
;; TODO: re-run phases again until program is stable (less than n opts made, more than r rounds performed, etc)
|
||||
;; END CPS optimization
|
||||
|
||||
(set! input-program
|
||||
(map
|
||||
cps-optimize-01
|
||||
input-program))
|
||||
(trace:info "---------------- after cps optimizations:")
|
||||
(trace:info input-program) ;pretty-print
|
||||
|
||||
(set! input-program
|
||||
(map
|
||||
|
|
|
@ -1458,10 +1458,7 @@
|
|||
ast)
|
||||
(else
|
||||
(cps ast '%halt)))))
|
||||
; ast-cps))
|
||||
;; TODO: use for temporary testing of optimizations
|
||||
;; eventually will want to call this explicitly from cyclone.scm
|
||||
(cps-optimize-01 ast-cps)))
|
||||
ast-cps))
|
||||
|
||||
;; CPS optimizations
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue