Re: A question about loop ivopt

2012-05-22 Thread Andrew Pinski
On Tue, May 22, 2012 at 8:04 PM, Jiangning Liu wrote: > Richard, > > But MODES_TIEABLE_P is a macro hook and isn't exposed to TREE level, so I > would have to modify xxx-protos.h for all back-ends. As far as I can tell it is exposed already to the middle-end via that hook in that you should be ab

RE: A question about loop ivopt

2012-05-22 Thread Jiangning Liu
> -Original Message- > From: Richard Guenther [mailto:richard.guent...@gmail.com] > Sent: Tuesday, May 22, 2012 6:36 PM > To: Jiangning Liu > Cc: Zdenek Dvorak; Jiangning Liu; gcc@gcc.gnu.org > Subject: Re: A question about loop ivopt > > On Tue, May 22, 2012 at

Re: A question about loop ivopt

2012-05-22 Thread Richard Guenther
On Tue, May 22, 2012 at 11:19 AM, Jiangning Liu wrote: > > >> -Original Message- >> From: Richard Guenther [mailto:richard.guent...@gmail.com] >> Sent: Tuesday, May 15, 2012 10:17 PM >> To: Zdenek Dvorak >> Cc: Jiangning Liu; gcc@gcc.gnu.org; Jiangning

RE: A question about loop ivopt

2012-05-22 Thread Jiangning Liu
> -Original Message- > From: Richard Guenther [mailto:richard.guent...@gmail.com] > Sent: Tuesday, May 15, 2012 10:17 PM > To: Zdenek Dvorak > Cc: Jiangning Liu; gcc@gcc.gnu.org; Jiangning Liu > Subject: Re: A question about loop ivopt > > On Tue, May 15, 2012 a

Re: A question about loop ivopt

2012-05-15 Thread Richard Guenther
On Tue, May 15, 2012 at 4:13 PM, Zdenek Dvorak wrote: > Hi, > >> > > > Why can't we replace function force_expr_to_var_cost directly with >> function >> > > > computation_cost in tree-ssa-loop-ivopt.c? >> > > > >> > > > Actually I think it is inaccurate for the current recursive algorithm >> in >>

Re: A question about loop ivopt

2012-05-15 Thread Zdenek Dvorak
Hi, > > > > Why can't we replace function force_expr_to_var_cost directly with > function > > > > computation_cost in tree-ssa-loop-ivopt.c? > > > > > > > > Actually I think it is inaccurate for the current recursive algorithm > in > > > > force_expr_to_var_cost to estimate expr cost. Instead > co

Re: A question about loop ivopt

2012-05-15 Thread Zdenek Dvorak
Hi, > > Why can't we replace function force_expr_to_var_cost directly with function > > computation_cost in tree-ssa-loop-ivopt.c? > > > > Actually I think it is inaccurate for the current recursive algorithm in > > force_expr_to_var_cost to estimate expr cost. Instead computation_cost can > > cou

Re: A question about loop ivopt

2012-05-15 Thread Richard Guenther
On Tue, May 15, 2012 at 7:05 AM, Jiangning Liu wrote: > Hi, > > Why can't we replace function force_expr_to_var_cost directly with function > computation_cost in tree-ssa-loop-ivopt.c? > > Actually I think it is inaccurate for the current recursive algorithm in > force_expr_to_var_cost to estimate

A question about loop ivopt

2012-05-14 Thread Jiangning Liu
Hi, Why can't we replace function force_expr_to_var_cost directly with function computation_cost in tree-ssa-loop-ivopt.c? Actually I think it is inaccurate for the current recursive algorithm in force_expr_to_var_cost to estimate expr cost. Instead computation_cost can count some back-end factor