Re: [PATCH] Improve maybe_remove_writeonly_store to do a simple DCE for defining statement

2021-10-21 Thread Richard Biener via Gcc-patches
On Thu, Oct 21, 2021 at 7:53 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > Instead of putting a full blow DCE after execute_fixup_cfg, it makes sense > to try to remove the defining statement for the store that is being removed. > Using simple_dce_from_worklist makes this easie

[PATCH] Improve maybe_remove_writeonly_store to do a simple DCE for defining statement

2021-10-20 Thread apinski--- via Gcc-patches
From: Andrew Pinski Instead of putting a full blow DCE after execute_fixup_cfg, it makes sense to try to remove the defining statement for the store that is being removed. Using simple_dce_from_worklist makes this easier, just mark the ssa_name on the rhs side of the store (if it was one) in a bi