mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 06:50:31 +02:00
Simplify rotate-loops.scm
* module/language/cps/rotate-loops.scm: Clean up unused code.
This commit is contained in:
parent
e54fbff185
commit
ce2888701c
1 changed files with 0 additions and 9 deletions
|
@ -51,21 +51,12 @@
|
|||
|
||||
(define-module (language cps rotate-loops)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module ((srfi srfi-1) #:select (filter-map))
|
||||
#:use-module (srfi srfi-9)
|
||||
#:use-module (language cps)
|
||||
#:use-module (language cps utils)
|
||||
#:use-module (language cps intmap)
|
||||
#:use-module (language cps intset)
|
||||
#:export (rotate-loops))
|
||||
|
||||
(define-record-type $loop
|
||||
(make-loop entry exits body)
|
||||
loop?
|
||||
(entry loop-entry)
|
||||
(exits loop-exits)
|
||||
(body loop-body))
|
||||
|
||||
(define (loop-successors scc succs)
|
||||
(intset-subtract (intset-fold (lambda (label exits)
|
||||
(intset-union exits (intmap-ref succs label)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue