Re: Simplify loop size when step=1

2019-06-01 Thread Jeff Law
On 6/1/19 2:41 AM, Marc Glisse wrote: > Hello, > > this is a small short-cut in the common case where the step is 1. This > avoids having ldist generate a BIT_AND_EXPR that requires VRP to remove, > then forwprop to clean up, etc, very close to the end of the > optimization pipeline. Please do che

Simplify loop size when step=1

2019-06-01 Thread Marc Glisse
Hello, this is a small short-cut in the common case where the step is 1. This avoids having ldist generate a BIT_AND_EXPR that requires VRP to remove, then forwprop to clean up, etc, very close to the end of the optimization pipeline. Please do check that the test s==1 is the right one. An a