]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/46498 (ICE: in eliminate_unnecessary_stmts, at tree-ssa-dce...
authorRichard Guenther <rguenther@suse.de>
Wed, 17 Nov 2010 10:46:36 +0000 (10:46 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Nov 2010 10:46:36 +0000 (10:46 +0000)
2010-11-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/46498
* tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.

From-SVN: r166862

gcc/ChangeLog
gcc/tree-ssa-dce.c

index 3602b6c4e96d81742e4e0cabfd9fe19413eccd58..5f65851e43f822f038bc10ddc09607c8260b5650 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-17  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/46498
+       * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
+
 2010-11-17  Alan Modra  <amodra@gmail.com>
 
        PR target/45807
index f54511c5741b3b6470a717860c07962f15268f24..f0e8a34f4cfa9580372399cd3165f1c9534190da 100644 (file)
@@ -1317,6 +1317,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  */