Re: [PATCH GCC 7/9]Skip loops iterating only 1 time in predictive commoning

2016-09-07 Thread Jeff Law
On 09/06/2016 12:53 PM, Bin Cheng wrote: Hi, For loops which are bounded to iterate only 1 time (thus loop's latch doesn't roll), there is nothing to predictive common, this patch detects/skips these cases. A test is also added in gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f for thi

[PATCH GCC 7/9]Skip loops iterating only 1 time in predictive commoning

2016-09-06 Thread Bin Cheng
Hi, For loops which are bounded to iterate only 1 time (thus loop's latch doesn't roll), there is nothing to predictive common, this patch detects/skips these cases. A test is also added in gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f for this. Thanks, bin 2016-09-01 Bin Cheng