Re: [PATCH GCC]Vectorize possible infinite loops by versioning

2016-07-21 Thread Bin.Cheng
On Wed, Jul 20, 2016 at 10:27 PM, Jeff Law wrote: > On 06/28/2016 12:18 AM, Bin Cheng wrote: >> >> Hi, >> This patch improves vectorizer in order to handle possible infinite loops >> by versioning. Its changes fall in three categories. >> A) Changes in vect_get_loop_niters. AT the moment, it com

Re: [PATCH GCC]Vectorize possible infinite loops by versioning

2016-07-20 Thread Jeff Law
On 06/28/2016 12:18 AM, Bin Cheng wrote: Hi, This patch improves vectorizer in order to handle possible infinite loops by versioning. Its changes fall in three categories. A) Changes in vect_get_loop_niters. AT the moment, it computes niter using number_of_executions_latch, in this way the as

[PATCH GCC]Vectorize possible infinite loops by versioning

2016-06-27 Thread Bin Cheng
Hi, This patch improves vectorizer in order to handle possible infinite loops by versioning. Its changes fall in three categories. A) Changes in vect_get_loop_niters. AT the moment, it computes niter using number_of_executions_latch, in this way the assumption is discarded and loop not vecto