Re: wip-cse

2012-04-16 Thread Andy Wingo
On Mon 16 Apr 2012 14:36, l...@gnu.org (Ludovic Courtès) writes: > Initially, I was expecting things like: > > (f (* a b) (* a b)) > => > (let ((x (* a b))) > (f x x)) > > but AIUI the CSE pass here eliminates duplicate references when they are > superfluous, but not when they are needed

Re: Build failures - compiling TeXmacs under guile 2.0.5

2012-04-16 Thread Ludovic Courtès
Hi Jan, Thanks for the report. Jan Synacek skribis: > I'm trying to build TeXmacs 1.0.7 with guile 2.0.5 and I'm getting tons of > errors like these: > > usr/include/guile/2.0/libguile/gsubr.h:64:12: error: initializing > argument 5 > of ‘scm_unused_struct* scm_c_define_gsubr(const char*

Re: wip-cse

2012-04-16 Thread Ludovic Courtès
Hi Andy, Andy Wingo skribis: > I just finished work on the "wip-cse" branch and would like to merge it > in sometime. It does a form of common subexpression elimination. It's > a post-pass, designed to run after peval. The examples in cse.test suggest that it does a good job. :-) Initially,