Re: [Chicken-hackers] [PATCH] Some simplification rules for nested ##core#inline forms

2019-09-16 Thread megane
Peter Bex writes: > On Wed, Sep 04, 2019 at 11:59:31AM +0200, felix.winkelm...@bevuta.com wrote: >> The attached patch adds two optimization rules for certain uses of >> ##core#inline. It basically rewrites >> >> (let (( (##core#inline ...))) >> ( ... ...)) >> >> into >> >> ( ...

Re: [Chicken-hackers] [PATCH] Some simplification rules for nested ##core#inline forms

2019-09-16 Thread Peter Bex
On Wed, Sep 04, 2019 at 11:59:31AM +0200, felix.winkelm...@bevuta.com wrote: > The attached patch adds two optimization rules for certain uses of > ##core#inline. It basically rewrites > > (let (( (##core#inline ...))) > ( ... ...)) > > into > > ( ... (##core##inline ...) ...) It looks like

Re: [Chicken-hackers] [PATCH] Some simplification rules for nested ##core#inline forms

2019-09-15 Thread Peter Bex
On Wed, Sep 04, 2019 at 11:59:31AM +0200, felix.winkelm...@bevuta.com wrote: > The attached patch adds two optimization rules for certain uses of > ##core#inline. It basically rewrites > > (let (( (##core#inline ...))) > ( ... ...)) > > into > > ( ... (##core##inline ...) ...) > > plus a

[Chicken-hackers] [PATCH] Some simplification rules for nested ##core#inline forms

2019-09-04 Thread felix . winkelmann
The attached patch adds two optimization rules for certain uses of ##core#inline. It basically rewrites (let (( (##core#inline ...))) ( ... ...)) into ( ... (##core##inline ...) ...) plus a variation on this. Removing the intermediate "let" form gives more opportunities to merge