Add dump prints when execute_fixup_cfg removes a write only var store.
authorAndrew Pinski <apinski@marvell.com>
Sat, 16 Oct 2021 02:30:55 +0000 (02:30 +0000)
committerAndrew Pinski <apinski@marvell.com>
Thu, 21 Oct 2021 08:18:58 +0000 (08:18 +0000)
commit005ebe1c07843e6312cd70523945fa1d729e7253
tree8bceccfbc88eebf3dd740d8bd63d34078a824160
parent70e72c3a11315fb6a228b7f58d027c2e1fbb9940
Add dump prints when execute_fixup_cfg removes a write only var store.

While debugging PR 102703, I found it was hard to figure out where
the store was being removed as there was no pass which was outputting
why the store was removed.
This adds to execute_fixup_cfg the output.
Also note most of removals happen when execute_fixup_cfg is called
from the inliner.

gcc/ChangeLog:

* tree-cfg.c (execute_fixup_cfg): Output when the statement
is removed when it is a write only var.
gcc/tree-cfg.c