]> gcc.gnu.org Git - 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:43:21 +0000 (10:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Nov 2010 10:43:21 +0000 (10:43 +0000)
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

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

index af48a1cb5c5960e27f86126c805083f18462a66d..cb041e0558538c7d67212efbd199fe03a68d51fb 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-16  Nathan Froyd  <froydnj@codesourcery.com>
 
        * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
index a1a51914fa6f574d71afd123a1212ead411faf05..a9c886f0a8fa40d0f42196960c2cd7701ff1162d 100644 (file)
@@ -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  */
This page took 0.101838 seconds and 5 git commands to generate.