Re: [PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-10-17 Thread Pat Haugen
On 10/14/2016 10:29 PM, Andrew Pinski wrote: >>> >> This patch bumps the iteration count by 1 for loops with the exit at the >>> >> end so that it represents the number of times the loop body is executed, >>> >> and therefore removes the need to always execute that first peeled copy. >>> >> With

Re: [PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-10-14 Thread Andrew Pinski
On Fri, Oct 14, 2016 at 8:28 PM, Andrew Pinski wrote: > On Thu, Sep 22, 2016 at 12:10 PM, Pat Haugen > wrote: >> I noticed the loop unroller peels an extra copy of the loop before it enters >> the switch block code to round the iteration count to a multiple of the >> unroll factor. This peeled

Re: [PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-10-14 Thread Andrew Pinski
On Thu, Sep 22, 2016 at 12:10 PM, Pat Haugen wrote: > I noticed the loop unroller peels an extra copy of the loop before it enters > the switch block code to round the iteration count to a multiple of the > unroll factor. This peeled copy is only needed for the case where the exit > test is at

Re: [PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-10-13 Thread Jeff Law
On 09/22/2016 01:10 PM, Pat Haugen wrote: I noticed the loop unroller peels an extra copy of the loop before it enters the switch block code to round the iteration count to a multiple of the unroll factor. This peeled copy is only needed for the case where the exit test is at the beginning of

PING Re: [PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-10-04 Thread Pat Haugen
Ping for the following patch https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01612.html -Pat

[PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-09-22 Thread Pat Haugen
I noticed the loop unroller peels an extra copy of the loop before it enters the switch block code to round the iteration count to a multiple of the unroll factor. This peeled copy is only needed for the case where the exit test is at the beginning of the loop since in that case it inserts the t