diff options
author | Richard Guenther <rguenther@suse.de> | 2010-11-17 10:43:21 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-11-17 10:43:21 +0000 |
commit | 5ac60b564faa85e195c3e2d1c0837d93576519e2 (patch) | |
tree | 8a3856ee19be9fd261934bc468d94768c6bd420d /gcc/tree-ssa-dce.c | |
parent | d92826beb489ef756200c775788a9397831b9ccf (diff) | |
download | gcc-5ac60b564faa85e195c3e2d1c0837d93576519e2.zip gcc-5ac60b564faa85e195c3e2d1c0837d93576519e2.tar.gz gcc-5ac60b564faa85e195c3e2d1c0837d93576519e2.tar.bz2 |
re PR tree-optimization/46498 (ICE: in eliminate_unnecessary_stmts, at tree-ssa-dce.c:1112 with -O -funsafe-math-optimizations -fno-tree-dominator-opts -fno-tree-reassoc)
2010-11-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46498
* tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
From-SVN: r166861
Diffstat (limited to 'gcc/tree-ssa-dce.c')
-rw-r--r-- | gcc/tree-ssa-dce.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c index a1a5191..a9c886f 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 */ |