[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 07/10: Enable letrectification
From: |
Andy Wingo |
Subject: |
[Guile-commits] 07/10: Enable letrectification |
Date: |
Sun, 18 Aug 2019 17:12:20 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 648bd5c43193a762d81aedfc54976ae2bdb8648d
Author: Andy Wingo <address@hidden>
Date: Fri Aug 16 17:41:34 2019 +0200
Enable letrectification
* module/language/tree-il/optimize.scm: Enable letrectification at -O1
and higher.
---
module/language/tree-il/optimize.scm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/module/language/tree-il/optimize.scm
b/module/language/tree-il/optimize.scm
index b06ced8..2f89f73 100644
--- a/module/language/tree-il/optimize.scm
+++ b/module/language/tree-il/optimize.scm
@@ -1,6 +1,6 @@
;;; Tree-il optimizer
-;; Copyright (C) 2009, 2010-2015, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2009, 2010-2015, 2018, 2019 Free Software Foundation, Inc.
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@@ -20,10 +20,11 @@
(define-module (language tree-il optimize)
#:use-module (language tree-il)
- #:use-module (language tree-il primitives)
- #:use-module (language tree-il peval)
- #:use-module (language tree-il fix-letrec)
#:use-module (language tree-il debug)
+ #:use-module (language tree-il fix-letrec)
+ #:use-module (language tree-il letrectify)
+ #:use-module (language tree-il peval)
+ #:use-module (language tree-il primitives)
#:use-module (ice-9 match)
#:export (optimize
tree-il-optimizations))
@@ -49,6 +50,7 @@
(maybe-verify x)
(run-pass resolve* #:resolve-primitives? #t)
(run-pass expand-primitives #:expand-primitives? #t)
+ (run-pass letrectify #:letrectify? #t)
(set! x (fix-letrec x))
(run-pass peval* #:partial-eval? #t)
x)
@@ -59,4 +61,5 @@
;; will result in a lot of code that will never get optimized nicely.
'((#:resolve-primitives? 2)
(#:expand-primitives? 1)
+ (#:letrectify? 1)
(#:partial-eval? 1)))
- [Guile-commits] branch master updated (b16ad94 -> 2751096), Andy Wingo, 2019/08/18
- [Guile-commits] 01/10: Fix bug in which codegen accessed data beyond end of stack, Andy Wingo, 2019/08/18
- [Guile-commits] 03/10: Simplify the define-primitive-expander macro, Andy Wingo, 2019/08/18
- [Guile-commits] 09/10: Fix coverage test for top-level binding optimization, Andy Wingo, 2019/08/18
- [Guile-commits] 08/10: Skip tests that don't work under letrectification, Andy Wingo, 2019/08/18
- [Guile-commits] 10/10: Define missing shuffling assembler for string-set! et al, Andy Wingo, 2019/08/18
- [Guile-commits] 07/10: Enable letrectification,
Andy Wingo <=
- [Guile-commits] 05/10: Add letrectify tree-il pass, Andy Wingo, 2019/08/18
- [Guile-commits] 06/10: Add notion of declarative modules, Andy Wingo, 2019/08/18
- [Guile-commits] 02/10: Add "mod" field to tree-il toplevel ref, set, define, Andy Wingo, 2019/08/18
- [Guile-commits] 04/10: Add primitive support for working with module variables, Andy Wingo, 2019/08/18