[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Constant folding
From: |
Andy Wingo |
Subject: |
Re: Constant folding |
Date: |
Wed, 16 Sep 2009 21:25:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
On Tue 08 Sep 2009 15:17, address@hidden (Ludovic Courtès) writes:
> We should implement constant folding in the tree-il->glil pass. A naive
> implementation looks like this:
>
> diff --git a/module/language/tree-il/compile-glil.scm
> b/module/language/tree-il/compile-glil.scm
> index 86b610f..57a46c8 100644
> --- a/module/language/tree-il/compile-glil.scm
> +++ b/module/language/tree-il/compile-glil.scm
Do it as a tree-il -> tree-il pass, as part of (language tree-il
optimize), and you'll be happer. It will be easier to unit test, too.
I think we should simply implement Waddell's algorithm.
Andy
--
http://wingolog.org/
- Constant folding, Ludovic Courtès, 2009/09/08
- Re: Constant folding,
Andy Wingo <=