OSDN Git Service

2010-11-16 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Nov 2010 10:43:21 +0000 (10:43 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Nov 2010 10:43:21 +0000 (10:43 +0000)
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

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

index af48a1c..cb041e0 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 a1a5191..a9c886f 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  */