Commit 6a2cf9dc by Diego Novillo Committed by Diego Novillo

tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.


	* tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
	(tree_ssa_dominator_optimize): Increment it.
	(dump_dominator_optimization_stats): Print it.

From-SVN: r102553
parent 216edb22
2005-07-29 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
(tree_ssa_dominator_optimize): Increment it.
(dump_dominator_optimization_stats): Print it.
2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com> 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
Steven Bosscher <stevenb@suse.de> Steven Bosscher <stevenb@suse.de>
......
...@@ -166,6 +166,7 @@ struct opt_stats_d ...@@ -166,6 +166,7 @@ struct opt_stats_d
long num_re; long num_re;
long num_const_prop; long num_const_prop;
long num_copy_prop; long num_copy_prop;
long num_iterations;
}; };
static struct opt_stats_d opt_stats; static struct opt_stats_d opt_stats;
...@@ -524,6 +525,8 @@ tree_ssa_dominator_optimize (void) ...@@ -524,6 +525,8 @@ tree_ssa_dominator_optimize (void)
if (value && !is_gimple_min_invariant (value)) if (value && !is_gimple_min_invariant (value))
SSA_NAME_VALUE (name) = NULL; SSA_NAME_VALUE (name) = NULL;
} }
opt_stats.num_iterations++;
} }
while (optimize > 1 && cfg_altered); while (optimize > 1 && cfg_altered);
...@@ -1356,6 +1359,9 @@ dump_dominator_optimization_stats (FILE *file) ...@@ -1356,6 +1359,9 @@ dump_dominator_optimization_stats (FILE *file)
fprintf (file, " Copies propagated: %6ld\n", fprintf (file, " Copies propagated: %6ld\n",
opt_stats.num_copy_prop); opt_stats.num_copy_prop);
fprintf (file, "\nTotal number of DOM iterations: %6ld\n",
opt_stats.num_iterations);
fprintf (file, "\nHash table statistics:\n"); fprintf (file, "\nHash table statistics:\n");
fprintf (file, " avail_exprs: "); fprintf (file, " avail_exprs: ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment