Re: [PATCH GCC8][14/33]Handle more cheap operations in force_expr_to_var_cost

2017-05-02 Thread Richard Biener
On Thu, Apr 27, 2017 at 5:45 PM, Bin.Cheng wrote: > On Thu, Apr 27, 2017 at 4:30 PM, Jeff Law wrote: >> On 04/26/2017 06:58 AM, Richard Biener wrote: >>> >>> On Tue, Apr 18, 2017 at 12:44 PM, Bin Cheng >>> wrote: Hi, This patch handles more cheap cases in function force_expr_to_va

Re: [PATCH GCC8][14/33]Handle more cheap operations in force_expr_to_var_cost

2017-04-27 Thread Bin.Cheng
On Thu, Apr 27, 2017 at 4:30 PM, Jeff Law wrote: > On 04/26/2017 06:58 AM, Richard Biener wrote: >> >> On Tue, Apr 18, 2017 at 12:44 PM, Bin Cheng >> wrote: >>> >>> Hi, This patch handles more cheap cases in function >>> force_expr_to_var_cost, specifically, TRUNC_DIV_EXPR, BIT_AND_EXPR, >>> BIT_

Re: [PATCH GCC8][14/33]Handle more cheap operations in force_expr_to_var_cost

2017-04-27 Thread Jeff Law
On 04/26/2017 06:58 AM, Richard Biener wrote: On Tue, Apr 18, 2017 at 12:44 PM, Bin Cheng wrote: Hi, This patch handles more cheap cases in function force_expr_to_var_cost, specifically, TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, RSHIFT_EXPR and BIT_NOT_EXPR. Is it OK? I wonder if using add

Re: [PATCH GCC8][14/33]Handle more cheap operations in force_expr_to_var_cost

2017-04-26 Thread Bin.Cheng
On Wed, Apr 26, 2017 at 1:58 PM, Richard Biener wrote: > On Tue, Apr 18, 2017 at 12:44 PM, Bin Cheng wrote: >> Hi, >> This patch handles more cheap cases in function force_expr_to_var_cost, >> specifically, >> TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, RSHIFT_EXPR and BIT_NOT_EXPR. >> >> Is it

Re: [PATCH GCC8][14/33]Handle more cheap operations in force_expr_to_var_cost

2017-04-26 Thread Richard Biener
On Tue, Apr 18, 2017 at 12:44 PM, Bin Cheng wrote: > Hi, > This patch handles more cheap cases in function force_expr_to_var_cost, > specifically, > TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, RSHIFT_EXPR and BIT_NOT_EXPR. > > Is it OK? I wonder if using add_cost is good here. TRUNC_DIV by powe

[PATCH GCC8][14/33]Handle more cheap operations in force_expr_to_var_cost

2017-04-18 Thread Bin Cheng
Hi, This patch handles more cheap cases in function force_expr_to_var_cost, specifically, TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, RSHIFT_EXPR and BIT_NOT_EXPR. Is it OK? Thanks, bin 2017-04-11 Bin Cheng * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more operat