Re: Fix PR64878: do not jump thread across two loop iterations

2015-02-05 Thread Jeff Law
On 02/04/15 14:20, Sebastian Pop wrote: Hi, The attached patch stops the recursion in the detection of FSM jump-threads at loop phi nodes after having visited a loop phi node. This avoids jump-threading two iterations forward that were possible due to a flip-flop operation that exchange the val

Re: Fix PR64878: do not jump thread across two loop iterations

2015-02-05 Thread Sebastian Pop
Jakub Jelinek wrote: > On Thu, Feb 05, 2015 at 08:21:46AM +0100, Richard Biener wrote: > > On February 4, 2015 10:20:06 PM CET, Sebastian Pop wrote: > > >The attached patch stops the recursion in the detection of FSM > > >jump-threads at > > >loop phi nodes after having visited a loop phi node. T

Re: Fix PR64878: do not jump thread across two loop iterations

2015-02-05 Thread Jakub Jelinek
On Thu, Feb 05, 2015 at 08:21:46AM +0100, Richard Biener wrote: > On February 4, 2015 10:20:06 PM CET, Sebastian Pop wrote: > >The attached patch stops the recursion in the detection of FSM > >jump-threads at > >loop phi nodes after having visited a loop phi node. This avoids > >jump-threading >

Re: Fix PR64878: do not jump thread across two loop iterations

2015-02-04 Thread Richard Biener
On February 4, 2015 10:20:06 PM CET, Sebastian Pop wrote: >Hi, > >The attached patch stops the recursion in the detection of FSM >jump-threads at >loop phi nodes after having visited a loop phi node. This avoids >jump-threading >two iterations forward that were possible due to a flip-flop operati

Fix PR64878: do not jump thread across two loop iterations

2015-02-04 Thread Sebastian Pop
Hi, The attached patch stops the recursion in the detection of FSM jump-threads at loop phi nodes after having visited a loop phi node. This avoids jump-threading two iterations forward that were possible due to a flip-flop operation that exchange the value of the switch control variable as illus