Let register allocation handle unused TNs due to constant folding
authorPaul Khuong <pvk@pvk.ca>
Wed, 22 Jun 2011 01:12:36 +0000 (21:12 -0400)
committerPaul Khuong <pvk@pvk.ca>
Wed, 22 Jun 2011 01:22:27 +0000 (21:22 -0400)
commit6596b18b95780986ff4eb511ab384da138adbb58
treebdeb8f7710e296d386f973b3bc15e918a6b9edcd
parent99a669b8fc3624c6b5aa68580829f50288169c31
Let register allocation handle unused TNs due to constant folding

 Type-directed constant folding can leave lambda-vars that are neither dead
 nor read from or written to.  Ideally, it seems like we should make sure to
 transform those into REF to CONSTANTs, but the optimisation doesn't seem
 guaranteed to fire.  It looks like the TN could simply not be allocated
 in ASSIGN-LAMBDA-VAR-TNS, but I'm not sure how to test for that situation
 ahead of time yet.

 Kludges over lp#729765.
NEWS
src/compiler/pack.lisp
tests/compiler.pure.lisp