[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/02: Declare #:cps? as an available optimization
From: |
Andy Wingo |
Subject: |
[Guile-commits] 02/02: Declare #:cps? as an available optimization |
Date: |
Mon, 11 May 2020 05:28:01 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit ffb210567d7430ab56fcbd5983ed72d121b27203
Author: Andy Wingo <address@hidden>
AuthorDate: Mon May 11 11:23:24 2020 +0200
Declare #:cps? as an available optimization
* module/language/tree-il/optimize.scm (tree-il-optimizations): Add
#:cps?, on by default from -O1. This enables "guild compile -O2
-Ono-cps foo.scm".
---
module/language/tree-il/optimize.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/module/language/tree-il/optimize.scm
b/module/language/tree-il/optimize.scm
index 66725b9..f4a5b4d 100644
--- a/module/language/tree-il/optimize.scm
+++ b/module/language/tree-il/optimize.scm
@@ -70,7 +70,8 @@
;; time enough that we reserve it for -O2. Also, this makes -O1 avoid
;; assumptions about top-level values, in the same way that avoiding
;; resolve-primitives does.
- '((#:resolve-primitives? 2)
+ '((#:cps? 1)
+ (#:resolve-primitives? 2)
(#:expand-primitives? 1)
(#:letrectify? 2)
(#:seal-private-bindings? 3)