Re: [PATCH] Add debugging helpers for ranger.

2021-06-17 Thread Aldy Hernandez via Gcc-patches
Attached is the final version of the patch I have pushed. Thanks. Aldy On Tue, Jun 15, 2021 at 4:26 PM Aldy Hernandez wrote: > > > > On 6/15/21 4:05 PM, Andrew MacLeod wrote: > > On 6/15/21 9:48 AM, Jakub Jelinek wrote: > >> On Tue, Jun 15, 2021 at 09:43:33AM -0400, Andrew MacLeod wrote: > >

Re: [PATCH] Add debugging helpers for ranger.

2021-06-15 Thread Aldy Hernandez via Gcc-patches
On 6/15/21 4:05 PM, Andrew MacLeod wrote: On 6/15/21 9:48 AM, Jakub Jelinek wrote: On Tue, Jun 15, 2021 at 09:43:33AM -0400, Andrew MacLeod wrote: +  basic_block bb; +  int_range_max r; +  FOR_EACH_BB_FN (bb, cfun) +    { +  gimple *last = last_stmt (bb); +  if (last && gimple_get_lhs

Re: [PATCH] Add debugging helpers for ranger.

2021-06-15 Thread Andrew MacLeod via Gcc-patches
On 6/15/21 9:48 AM, Jakub Jelinek wrote: On Tue, Jun 15, 2021 at 09:43:33AM -0400, Andrew MacLeod wrote: + basic_block bb; + int_range_max r; + FOR_EACH_BB_FN (bb, cfun) +{ + gimple *last = last_stmt (bb); + if (last && gimple_get_lhs (last)) + ranger.range_of_stmt (r, las

Re: [PATCH] Add debugging helpers for ranger.

2021-06-15 Thread Jakub Jelinek via Gcc-patches
On Tue, Jun 15, 2021 at 09:43:33AM -0400, Andrew MacLeod wrote: > > > + basic_block bb; > > > + int_range_max r; > > > + FOR_EACH_BB_FN (bb, cfun) > > > +{ > > > + gimple *last = last_stmt (bb); > > > + if (last && gimple_get_lhs (last)) > > > + ranger.range_of_stmt (r, last); > >

Re: [PATCH] Add debugging helpers for ranger.

2021-06-15 Thread Andrew MacLeod via Gcc-patches
On 6/15/21 7:55 AM, Jakub Jelinek via Gcc-patches wrote: On Tue, Jun 15, 2021 at 01:47:41PM +0200, Aldy Hernandez via Gcc-patches wrote: +// = +// Debugging helpers. +// = + +// Query all statements in the IL to prec

Re: [PATCH] Add debugging helpers for ranger.

2021-06-15 Thread Jakub Jelinek via Gcc-patches
On Tue, Jun 15, 2021 at 01:47:41PM +0200, Aldy Hernandez via Gcc-patches wrote: > +// = > +// Debugging helpers. > +// = > + > +// Query all statements in the IL to precalculate computable ranges in > RANGER. Not a re