Re: [PATCH] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-20 Thread Jeff Law via Gcc-patches
On 4/19/2021 1:40 AM, Jakub Jelinek via Gcc-patches wrote: On Sun, Apr 18, 2021 at 08:11:21PM -0400, Andrew MacLeod via Gcc-patches wrote: --- a/gcc/gimple-range-gori.cc +++ b/gcc/gimple-range-gori.cc @@ -29,6 +29,36 @@ along with GCC; see the file COPYING3. If not see #include "gimple-pret

Re: [Patch] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-19 Thread Andrew MacLeod via Gcc-patches
On 4/19/21 4:18 AM, Richard Biener wrote: On Sun, Apr 18, 2021 at 4:40 AM Andrew MacLeod via Gcc-patches wrote: I also disable the logical cache since it isn't really doing anything any more. OK for trunk? Please make +#define LOGICAL_LIMIT 6 a --param (params.opt, documented in invok

Re: [PATCH] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-19 Thread Andrew MacLeod via Gcc-patches
On 4/19/21 3:40 AM, Jakub Jelinek wrote: On Sun, Apr 18, 2021 at 08:11:21PM -0400, Andrew MacLeod via Gcc-patches wrote: --- a/gcc/gimple-range-gori.cc +++ b/gcc/gimple-range-gori.cc @@ -29,6 +29,36 @@ along with GCC; see the file COPYING3. If not see #include "gimple-pretty-print.h" #inclu

Re: [Patch] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-19 Thread Richard Biener via Gcc-patches
On Sun, Apr 18, 2021 at 4:40 AM Andrew MacLeod via Gcc-patches wrote: > > The code presented at the time wrestrict was invoking ranger has a basic > block with about 7200 statements, all of them calculations which fed > into 2614 logical ORs and 1480 logical ANDs. > > the GORI component which calc

Re: [PATCH] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-19 Thread Jakub Jelinek via Gcc-patches
On Sun, Apr 18, 2021 at 08:11:21PM -0400, Andrew MacLeod via Gcc-patches wrote: > --- a/gcc/gimple-range-gori.cc > +++ b/gcc/gimple-range-gori.cc > @@ -29,6 +29,36 @@ along with GCC; see the file COPYING3. If not see > #include "gimple-pretty-print.h" > #include "gimple-range.h" > > +// Limit

[PATCH] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-18 Thread Andrew MacLeod via Gcc-patches
The code presented at the time wrestrict was invoking ranger has a basic block with about 7200 statements, all of them calculations which fed into 2614 logical ORs and 1480 logical ANDs. the GORI component which calculates outgoing ranges starts at the exit of the block and works it way backĀ 

[Patch] PR tree-optimization/100081 - Limit depth of logical expression windback.

2021-04-17 Thread Andrew MacLeod via Gcc-patches
The code presented at the time wrestrict was invoking ranger has a basic block with about 7200 statements, all of them calculations which fed into 2614 logical ORs and 1480 logical ANDs. the GORI component which calculates outgoing ranges starts at the exit of the block and works it way backĀ