From: Richard Guenther Date: Wed, 17 Nov 2010 10:43:21 +0000 (+0000) Subject: re PR tree-optimization/46498 (ICE: in eliminate_unnecessary_stmts, at tree-ssa-dce... X-Git-Tag: releases/gcc-4.6.0~2529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=r0-104723-g5ac60b564faa85;p=thirdparty%2Fgcc.git 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 PR tree-optimization/46498 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info. From-SVN: r166861 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af48a1cb5c59..cb041e055853 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-11-17 Richard Guenther + + PR tree-optimization/46498 + * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info. + 2010-11-16 Nathan Froyd * config/xtensa/xtensa.c (function_arg_boundary): Really rename to... diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c index a1a51914fa6f..a9c886f0a8fa 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 */