Re: [PATCH] Fix PR78185

2016-11-03 Thread Richard Biener
On Wed, 2 Nov 2016, Richard Biener wrote: > > The following fixes PR78185 by properly honoring possibly infinite child > loops when computing what blocks are always executed during loop invariant > motion. Such loops behave as if the loop would exit at this point. > > Both GIMPLE and RTL level

[PATCH] Fix PR78185

2016-11-02 Thread Richard Biener
The following fixes PR78185 by properly honoring possibly infinite child loops when computing what blocks are always executed during loop invariant motion. Such loops behave as if the loop would exit at this point. Both GIMPLE and RTL level passes have that very same issue and the following