Factor out removal of write only stores from execute_fixup_cfg
authorAndrew Pinski <apinski@marvell.com>
Sat, 16 Oct 2021 03:09:05 +0000 (03:09 +0000)
committerAndrew Pinski <apinski@marvell.com>
Thu, 21 Oct 2021 08:18:58 +0000 (08:18 +0000)
commit36ec4a3c927bd2cc212a7f331ad842cd90eb5283
tree65c064116c09614a24bdf064b2a03b32b7fcb58c
parent0a717f13355928d05f134409bf004f900d358046
Factor out removal of write only stores from execute_fixup_cfg

To make it easier to fix PR 102703, factoring this code out
to its own function makes it easier to read and less indentions
too.

gcc/ChangeLog:

* tree-cfg.c (maybe_remove_writeonly_store): New function
factored out from ...
(execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
gcc/tree-cfg.c