aboutsummaryrefslogtreecommitdiff
path: root/gcc/dce.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-02-14 12:30:58 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-02-14 11:30:58 +0000
commit696c5b27c524cf65c6b06e93e62f047faad40a78 (patch)
tree025cb0cd849aa9f62b7fc8bd4f825d4c9de60fa0 /gcc/dce.c
parent133342f061ca8d9746484db81ddbb7e493618209 (diff)
downloadgcc-696c5b27c524cf65c6b06e93e62f047faad40a78.zip
gcc-696c5b27c524cf65c6b06e93e62f047faad40a78.tar.gz
gcc-696c5b27c524cf65c6b06e93e62f047faad40a78.tar.bz2
Call free_dominance_info when transformed in DCE (PR rtl-optimization/89242).
2019-02-14 Martin Liska <mliska@suse.cz> PR rtl-optimization/89242 * dce.c (delete_unmarked_insns): Call free_dominance_info we process a transformation. 2019-02-14 Martin Liska <mliska@suse.cz> PR rtl-optimization/89242 * g++.dg/pr89242.C: New test. From-SVN: r268873
Diffstat (limited to 'gcc/dce.c')
-rw-r--r--gcc/dce.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dce.c b/gcc/dce.c
index cb18e815..8fb109c 100644
--- a/gcc/dce.c
+++ b/gcc/dce.c
@@ -652,6 +652,7 @@ delete_unmarked_insns (void)
{
gcc_assert (can_alter_cfg);
delete_unreachable_blocks ();
+ free_dominance_info (CDI_DOMINATORS);
}
}