[PATCH] Fix PR42108

2014-12-11 Thread Richard Biener
The following patch fixes the performance regression in PR42108 by allowing PRE and LIM to see the division (to - from) / step in translating do loops executed unconditionally. This makes them not care for the fact that step might be zero and thus the division might trap. This makes the runtime

Re: [PATCH] Fix PR42108

2014-12-11 Thread Steve Kargl
On Thu, Dec 11, 2014 at 11:05:13AM +0100, Richard Biener wrote: The following patch fixes the performance regression in PR42108 by allowing PRE and LIM to see the division (to - from) / step in translating do loops executed unconditionally. This makes them not care for the fact that step

Re: [PATCH] Fix PR42108

2014-12-10 Thread Richard Biener
On Tue, 9 Dec 2014, Richard Biener wrote: The following finally fixes PR42108 (well, hopefully...) by using range-information on SSA names to allow the integer divisions introduced by Fortran array lowering being hoisted out of loops, thus detecting them as not trapping. I chose to

[PATCH] Fix PR42108

2014-12-09 Thread Richard Biener
The following finally fixes PR42108 (well, hopefully...) by using range-information on SSA names to allow the integer divisions introduced by Fortran array lowering being hoisted out of loops, thus detecting them as not trapping. I chose to enhance tree_single_nonzero_warnv_p for this and