On Wed, Nov 9, 2016 at 11:13 PM, Pat Haugen <pthau...@linux.vnet.ibm.com> wrote: > The following fixes a problem introduced by my earlier loop unroller patch, > https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01612.html. In instances where > the niter expr is not reliable we need to still emit an initial peel copy of > the loop. > > Bootstrap/regtest on powerpc64le with no new regressions. Ok for trunk?
Ok. Richard. > -Pat > > > 2016-11-09 Pat Haugen <pthau...@us.ibm.com> > > PR rtl-optimization/78241 > * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust > 'niter', but > emit initial peel copy if niter expr is not reliable. > > > testsuite/ChangeLog: > 2016-11-09 Pat Haugen <pthau...@us.ibm.com> > > * gcc.dg/pr78241.c: New test. > >