Remove obsolete comment in compile-bytecode.scm
[bpt/guile.git] / test-suite / tests / cse.test
index f9b85d4..25e6626 100644 (file)
@@ -1,7 +1,7 @@
 ;;;; tree-il.test --- test suite for compiling tree-il   -*- scheme -*-
 ;;;; Andy Wingo <wingo@pobox.com> --- May 2009
 ;;;;
-;;;;   Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+;;;;   Copyright (C) 2009, 2010, 2011, 2012, 2013 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
@@ -28,7 +28,6 @@
   #:use-module (language tree-il fix-letrec)
   #:use-module (language tree-il cse)
   #:use-module (language tree-il peval)
-  #:use-module (language glil)
   #:use-module (srfi srfi-13))
 
 (define-syntax pass-if-cse
     ((_ in pat)
      (pass-if 'in
        (let ((evaled (unparse-tree-il
-                      (canonicalize!
-                       (fix-letrec!
+                      (canonicalize
+                       (fix-letrec
                         (cse
                          (peval
-                          (expand-primitives!
-                           (resolve-primitives!
+                          (expand-primitives
+                           (resolve-primitives
                             (compile 'in #:from 'scheme #:to 'tree-il)
                             (current-module))))))))))
          (pmatch evaled
   (pass-if "http://bugs.gnu.org/12883"
     ;; In 2.0.6, compiling this code would trigger an out-of-bounds
     ;; vlist access in CSE's traversal of its "database".
-    (glil-program?
-     (compile '(define (proc v)
+    (procedure?
+     (compile '(lambda (v)
                  (let ((failure (lambda () (bail-out 'match))))
                    (if (and (pair? v)
                             (null? (cdr v)))
                              #t
                              (failure)))
                        (failure))))
-              #:from 'scheme
-              #:to 'glil))))
+              #:from 'scheme))))