Don't free dominators after sincos
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 30 Oct 2015 13:47:25 +0000 (13:47 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 30 Oct 2015 13:47:25 +0000 (13:47 +0000)
sincos has always freed dominators at the end, but AFAICT they should
still be up-to-date.  (In particular, gimple_purge_dead_eh_edges
updates the information.)

Tested on x86_64-linux-gnu, arm-linux-gnueabi and aarch64-linux-gnu.

gcc/
* tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
CDI_DOMINATORS.

From-SVN: r229582

gcc/ChangeLog
gcc/tree-ssa-math-opts.c

index 3d8b19c073b12c04a3a4e138bfca94a1838f3a15..adbd98e64ed994e491a65d3d8aeaaee58248675d 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
+       CDI_DOMINATORS.
+
 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
 
        * real.h (format_helper): New.
index 2080328c42d80659ae1720325235ff889633f881..1802754e9c19e0b936bcdb20fccf1505573ba10c 100644 (file)
@@ -1857,7 +1857,6 @@ pass_cse_sincos::execute (function *fun)
   statistics_counter_event (fun, "sincos statements inserted",
                            sincos_stats.inserted);
 
-  free_dominance_info (CDI_DOMINATORS);
   return cfg_changed ? TODO_cleanup_cfg : 0;
 }