mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-11 14:57:36 +02:00
Experimental change
This commit is contained in:
parent
7a90159109
commit
79cde357b1
1 changed files with 11 additions and 0 deletions
|
@ -959,6 +959,17 @@
|
|||
(analyze:find-inlinable-vars e args)))
|
||||
(cdr exp)))
|
||||
;(reverse (cdr exp))))
|
||||
;; If primitive mutates its args, ignore if ivar is not mutated (??)
|
||||
;((and (prim? (car exp))
|
||||
; (prim:mutates? (car exp))
|
||||
; (> (length exp) 1))
|
||||
; (analyze:find-inlinable-vars (cadr exp) args)
|
||||
; ;; First param is always mutated
|
||||
; (for-each
|
||||
; (lambda (e)
|
||||
; (if (not (ref? e))
|
||||
; (analyze:find-inlinable-vars e args)))
|
||||
; (cddr exp)))
|
||||
((and (not (prim? (car exp)))
|
||||
(ref? (car exp)))
|
||||
(define ref-formals '())
|
||||
|
|
Loading…
Add table
Reference in a new issue