diff --git a/module/language/cps/slot-allocation.scm b/module/language/cps/slot-allocation.scm index a7b9f746c..b446d9e52 100644 --- a/module/language/cps/slot-allocation.scm +++ b/module/language/cps/slot-allocation.scm @@ -340,8 +340,9 @@ are comparable with eqv?. A tmp slot may be used." (define (visit-exp exp label k live-set) (define (use sym live-set) - (if (and (lookup-slot sym allocation) (dead-after-use? sym k dfg)) - (dead sym k live-set) + (if (and (and=> (lookup-slot sym allocation) (cut > <> nargs)) + (dead-after-use? sym label dfg)) + (dead sym label live-set) live-set)) (match exp