diff options
author | Andy Wingo <wingo@pobox.com> | 2024-03-13 13:11:14 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2024-03-13 13:11:14 +0100 |
commit | c758c99b5e37408e48dc1b22c73d6ec35d9de866 (patch) | |
tree | 7d47a5663ecbb30195e23e8773cecfc4c7265e86 /module/system | |
parent | e1690f3fd251d69b3687ec12c6f4b41034047f0f (diff) | |
download | guile-c758c99b5e37408e48dc1b22c73d6ec35d9de866.tar.gz |
New optimization: demux-lambda
Can help reduce case-lambda* / lambda* at Tree-IL optimization-time.
* module/language/tree-il/demux-lambda.scm: New file.
* am/bootstrap.am (SOURCES): Add new file.
* module/language/tree-il/optimize.scm (make-optimizer):
* module/system/base/optimize.scm (available-optimizations): Enable
demux-lambda at level 2.
Diffstat (limited to 'module/system')
-rw-r--r-- | module/system/base/optimize.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/system/base/optimize.scm b/module/system/base/optimize.scm index 8c36cca07..2152041c3 100644 --- a/module/system/base/optimize.scm +++ b/module/system/base/optimize.scm @@ -1,6 +1,6 @@ ;;; Optimization flags -;; Copyright (C) 2018, 2020-2022 Free Software Foundation, Inc. +;; Copyright (C) 2018,2020-2022,2024 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 @@ -32,6 +32,7 @@ (#:resolve-primitives? 1) (#:expand-primitives? 1) (#:letrectify? 2) + (#:demux-lambda? 2) (#:seal-private-bindings? 3) (#:partial-eval? 1) (#:eta-expand? 2) |