Fix PR87074: miscompilation with unroll-and-jam

2018-08-31 Thread Michael Matz
Hi, as Jakub correctly identified, uses of values produced by the inner loop that occur inside the outer loop prevent fusion as well. We are in LCSSA so the check is easy. (Uses outside the outer loop are okay, see the comment) Regstrapping on x86-64-linux in progress. Okay for trunk? Cia

Re: Fix PR87074: miscompilation with unroll-and-jam

2018-08-31 Thread Richard Biener
On August 31, 2018 4:11:26 PM GMT+02:00, Michael Matz wrote: >Hi, > >as Jakub correctly identified, uses of values produced by the inner >loop >that occur inside the outer loop prevent fusion as well. We are >in LCSSA so the check is easy. (Uses outside the outer loop are okay, >see >the comm

Re: Fix PR87074: miscompilation with unroll-and-jam

2018-08-31 Thread Jakub Jelinek
On Fri, Aug 31, 2018 at 04:31:09PM +0200, Richard Biener wrote: > On August 31, 2018 4:11:26 PM GMT+02:00, Michael Matz wrote: > >Hi, > > > >as Jakub correctly identified, uses of values produced by the inner > >loop > >that occur inside the outer loop prevent fusion as well. We are > >in LCSSA