Re: [PATCH] tree-optimization/96881 - CD-DCE and CLOBBERs

2022-02-17 Thread Richard Biener via Gcc-patches
On Thu, 17 Feb 2022, Jan Hubicka wrote: > > +/* Returns whether the control parents of BB are preserved. */ > > + > > +static bool > > +control_parents_preserved_p (basic_block bb) > > +{ > > + /* If we marked the control parents from BB they are preserved. */ > > + if (bitmap_bit_p (visited_c

Re: [PATCH] tree-optimization/96881 - CD-DCE and CLOBBERs

2022-02-17 Thread Jan Hubicka via Gcc-patches
> +/* Returns whether the control parents of BB are preserved. */ > + > +static bool > +control_parents_preserved_p (basic_block bb) > +{ > + /* If we marked the control parents from BB they are preserved. */ > + if (bitmap_bit_p (visited_control_parents, bb->index)) > +return true; > + > +

Re: [PATCH] tree-optimization/96881 - CD-DCE and CLOBBERs

2022-02-17 Thread Richard Biener via Gcc-patches
On Thu, 17 Feb 2022, Richard Biener wrote: > On Tue, 15 Feb 2022, Jan Hubicka wrote: > > > > @@ -1272,7 +1275,7 @@ maybe_optimize_arith_overflow (gimple_stmt_iterator > > > *gsi, > > > contributes nothing to the program, and can be deleted. */ > > > > > > static bool > > > -eliminate_unn

Re: [PATCH] tree-optimization/96881 - CD-DCE and CLOBBERs

2022-02-16 Thread Richard Biener via Gcc-patches
On Tue, 15 Feb 2022, Jan Hubicka wrote: > > @@ -1272,7 +1275,7 @@ maybe_optimize_arith_overflow (gimple_stmt_iterator > > *gsi, > > contributes nothing to the program, and can be deleted. */ > > > > static bool > > -eliminate_unnecessary_stmts (void) > > +eliminate_unnecessary_stmts (bool

Re: [PATCH] tree-optimization/96881 - CD-DCE and CLOBBERs

2022-02-15 Thread Jan Hubicka via Gcc-patches
> @@ -1272,7 +1275,7 @@ maybe_optimize_arith_overflow (gimple_stmt_iterator > *gsi, > contributes nothing to the program, and can be deleted. */ > > static bool > -eliminate_unnecessary_stmts (void) > +eliminate_unnecessary_stmts (bool aggressive) > { >bool something_changed = false;