Re: [PATCH][RFC] Add gimple_fold

2011-03-24 Thread Diego Novillo
On Tue, Mar 22, 2011 at 04:59, Richard Guenther wrote: > I simply put it in place as a possibility, I currently don't plan > to implement any GF_KIND_COMPLEX folders (the caller would need to > re-gimplify them which doesn't sound too useful).  Maybe I should > simply drop it. Perhaps. Not supp

Re: [PATCH][RFC] Add gimple_fold

2011-03-22 Thread Richard Guenther
On Mon, 21 Mar 2011, Diego Novillo wrote: > On 03/18/2011 10:11 AM, Richard Guenther wrote: > > > > This tries to extend the previously posted CCP folding patch by > > introducing a generic interface for non-tree-building, GIMPLE SSA > > aware folding. The low-level interface for folding regular

Re: [PATCH][RFC] Add gimple_fold

2011-03-21 Thread Diego Novillo
On 03/18/2011 10:11 AM, Richard Guenther wrote: This tries to extend the previously posted CCP folding patch by introducing a generic interface for non-tree-building, GIMPLE SSA aware folding. The low-level interface for folding regular operations is /* Fold the expression composed by *CODEP,

[PATCH][RFC] Add gimple_fold

2011-03-18 Thread Richard Guenther
This tries to extend the previously posted CCP folding patch by introducing a generic interface for non-tree-building, GIMPLE SSA aware folding. The low-level interface for folding regular operations is /* Fold the expression composed by *CODEP, TYPE and valueized operands *OP0P, *OP1P and *