[0/4] Fix PR tree-opt/102703

Message ID 1634619244-18969-1-git-send-email-apinski@marvell.com
Headers
Series Fix PR tree-opt/102703 |

Message

Li, Pan2 via Gcc-patches Oct. 19, 2021, 4:54 a.m. UTC
  From: Andrew Pinski <apinski@marvell.com>

This patch series fixes PR tree-opt/102703 by
improving the code which will delete write only stores to also
delete the phi node (if it was a phi node) that was used to define
the write.
We need to some factoring out of the code to make it easier
to understand and less indention.

Andrew Pinski (4):
  Add dump prints when execute_fixup_cfg removes a write only var store.
  Remove outdated comment about execute_fixup_cfg
  Factor out removal of write only stores from execute_fixup_cfg
  Improve maybe_remove_writeonly_store to do a simple DCE for defining
    statement

 gcc/tree-cfg.c | 95 ++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 73 insertions(+), 22 deletions(-)