Re: [PATCH 2/3][POPCOUNT] Check if zero check is done before entering the loop

2018-06-28 Thread Richard Biener
On Wed, Jun 27, 2018 at 7:01 AM Kugan Vivekanandarajah wrote: > > Hi Richard, > > Thanks for the review. > > On 25 June 2018 at 20:02, Richard Biener wrote: > > On Fri, Jun 22, 2018 at 11:14 AM Kugan Vivekanandarajah > > wrote: > >> > >> gcc/ChangeLog: > > > > The canonical way is calling

Re: [PATCH 2/3][POPCOUNT] Check if zero check is done before entering the loop

2018-06-26 Thread Kugan Vivekanandarajah
Hi Richard, Thanks for the review. On 25 June 2018 at 20:02, Richard Biener wrote: > On Fri, Jun 22, 2018 at 11:14 AM Kugan Vivekanandarajah > wrote: >> >> gcc/ChangeLog: > > The canonical way is calling simplify_using_initial_conditions on the > may_be_zero condition. > > Richard. > >>

Re: [PATCH 2/3][POPCOUNT] Check if zero check is done before entering the loop

2018-06-25 Thread Richard Biener
On Fri, Jun 22, 2018 at 11:14 AM Kugan Vivekanandarajah wrote: > > gcc/ChangeLog: The canonical way is calling simplify_using_initial_conditions on the may_be_zero condition. Richard. > 2018-06-22 Kugan Vivekanandarajah > > * tree-ssa-loop-niter.c (number_of_iterations_popcount): If

[PATCH 2/3][POPCOUNT] Check if zero check is done before entering the loop

2018-06-22 Thread Kugan Vivekanandarajah
gcc/ChangeLog: 2018-06-22 Kugan Vivekanandarajah * tree-ssa-loop-niter.c (number_of_iterations_popcount): If popcount argument is checked for zero before entering loop, avoid checking again. From 4f2a6ad5a49eec0a1cae15e033329f889f9137b9 Mon Sep 17 00:00:00 2001 From: Kugan