[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 05/09: Tweak intset printing
From: |
Andy Wingo |
Subject: |
[Guile-commits] 05/09: Tweak intset printing |
Date: |
Wed, 15 Jul 2015 07:51:36 +0000 |
wingo pushed a commit to branch master
in repository guile.
commit 363d6498e59180e02f30ed4716ba5e4980c703db
Author: Andy Wingo <address@hidden>
Date: Tue Jul 14 13:54:19 2015 +0200
Tweak intset printing
* module/language/cps/intset.scm: Print members of set as absolute
values, not diffs from set minumum.
---
module/language/cps/intset.scm | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/module/language/cps/intset.scm b/module/language/cps/intset.scm
index 005bb7e..7a16464 100644
--- a/module/language/cps/intset.scm
+++ b/module/language/cps/intset.scm
@@ -768,13 +768,8 @@
(match ranges
(()
(format port "#<~a>" tag))
- (((0 . _) . _)
- (format port "#<~a ~a>" tag (range-string ranges)))
- (((min . end) . ranges)
- (let ((ranges (map (match-lambda
- ((start . end) (cons (- start min) (- end min))))
- (acons min end ranges))))
- (format port "#<~a ~a+~a>" tag min (range-string ranges)))))))
+ (_
+ (format port "#<~a ~a>" tag (range-string ranges))))))
(define (print-intset intset port)
(print-helper port "intset" intset))
- [Guile-commits] branch master updated (dbe6247 -> 981802c), Andy Wingo, 2015/07/15
- [Guile-commits] 01/09: Reorganizing of intset/intmap helper functions, Andy Wingo, 2015/07/15
- [Guile-commits] 02/09: intset-union fast paths, Andy Wingo, 2015/07/15
- [Guile-commits] 03/09: Fix intset-subtract to reliably produce empty-intset, Andy Wingo, 2015/07/15
- [Guile-commits] 04/09: CPS2 renumber works with first-order CPS, Andy Wingo, 2015/07/15
- [Guile-commits] 05/09: Tweak intset printing,
Andy Wingo <=
- [Guile-commits] 06/09: Beginnings of first-order CPS optimization, Andy Wingo, 2015/07/15
- [Guile-commits] 07/09: Verify pass works on first-order CPS, Andy Wingo, 2015/07/15
- [Guile-commits] 09/09: Wire up new closure conversion pass, Andy Wingo, 2015/07/15
- [Guile-commits] 08/09: Add CPS2 closure conversion module, Andy Wingo, 2015/07/15