summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dce.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-17 10:43:21 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-17 10:43:21 +0000
commit01631cfb28a1ae100fb3f50aeacea6ce92d2cb68 (patch)
tree8a3856ee19be9fd261934bc468d94768c6bd420d /gcc/tree-ssa-dce.c
parentab10d69dec2ac025bf68fb1a18fad9f7444d97de (diff)
downloadgcc-01631cfb28a1ae100fb3f50aeacea6ce92d2cb68.tar.gz
2010-11-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46498 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166861 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-dce.c')
-rw-r--r--gcc/tree-ssa-dce.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
index a1a51914fa6..a9c886f0a8f 100644
--- a/gcc/tree-ssa-dce.c
+++ b/gcc/tree-ssa-dce.c
@@ -1408,6 +1408,8 @@ perform_tree_ssa_dce (bool aggressive)
struct edge_list *el = NULL;
bool something_changed = 0;
+ calculate_dominance_info (CDI_DOMINATORS);
+
/* Preheaders are needed for SCEV to work.
Simple lateches and recorded exits improve chances that loop will
proved to be finite in testcases such as in loop-15.c and loop-24.c */