[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/08: Fix DCE over primcall setters with params
From: |
Andy Wingo |
Subject: |
[Guile-commits] 06/08: Fix DCE over primcall setters with params |
Date: |
Wed, 6 Dec 2017 07:59:42 -0500 (EST) |
wingo pushed a commit to branch master
in repository guile.
commit 52e28fd19ef94ed4e3c2f1480b110ff4540e65e8
Author: Andy Wingo <address@hidden>
Date: Wed Dec 6 13:44:17 2017 +0100
Fix DCE over primcall setters with params
* module/language/cps/dce.scm (compute-live-code): The primcall-param
refactor made it so that a vector-set! to a dead vector would
needlessly mark the vector as live. This commit fixes it and adds
scm-set!, etc.
---
module/language/cps/dce.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/module/language/cps/dce.scm b/module/language/cps/dce.scm
index 0727675..d896b36 100644
--- a/module/language/cps/dce.scm
+++ b/module/language/cps/dce.scm
@@ -206,7 +206,9 @@ sites."
(($ $primcall
(or 'vector-set! 'vector-set!/immediate
'set-car! 'set-cdr!
- 'box-set!) #f
+ 'box-set!
+ 'scm-set! 'scm-set!/tag 'scm-set!/immediate
+ 'word-set! 'word-set!/immediate) _
(obj . _))
(or (var-live? obj live-vars)
(not (intset-ref known-allocations obj))))
- [Guile-commits] branch master updated (64acf24 -> da7144d), Andy Wingo, 2017/12/06
- [Guile-commits] 01/08: Bailouts can continue directly to tail, Andy Wingo, 2017/12/06
- [Guile-commits] 03/08: CPS conversion residualizes undefined? predicate, Andy Wingo, 2017/12/06
- [Guile-commits] 04/08: Re-mark "throw" et al as not having fallthrough, Andy Wingo, 2017/12/06
- [Guile-commits] 05/08: Assignment conversion uses unchecked memory accessors, Andy Wingo, 2017/12/06
- [Guile-commits] 06/08: Fix DCE over primcall setters with params,
Andy Wingo <=
- [Guile-commits] 02/08: Add scm-ref, etc instructions for generic heap object field access, Andy Wingo, 2017/12/06
- [Guile-commits] 07/08: Support closure annotations to scm-ref et al, Andy Wingo, 2017/12/06
- [Guile-commits] 08/08: Use unchecked scm-ref/set in closure conversion, Andy Wingo, 2017/12/06