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
This commit is contained in:
parent
216edb224f
commit
6a2cf9dce7
@ -1,3 +1,9 @@
|
||||
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>
|
||||
Steven Bosscher <stevenb@suse.de>
|
||||
|
||||
|
@ -166,6 +166,7 @@ struct opt_stats_d
|
||||
long num_re;
|
||||
long num_const_prop;
|
||||
long num_copy_prop;
|
||||
long num_iterations;
|
||||
};
|
||||
|
||||
static struct opt_stats_d opt_stats;
|
||||
@ -524,6 +525,8 @@ tree_ssa_dominator_optimize (void)
|
||||
if (value && !is_gimple_min_invariant (value))
|
||||
SSA_NAME_VALUE (name) = NULL;
|
||||
}
|
||||
|
||||
opt_stats.num_iterations++;
|
||||
}
|
||||
while (optimize > 1 && cfg_altered);
|
||||
|
||||
@ -1356,6 +1359,9 @@ dump_dominator_optimization_stats (FILE *file)
|
||||
fprintf (file, " Copies propagated: %6ld\n",
|
||||
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, " avail_exprs: ");
|
||||
|
Loading…
Reference in New Issue
Block a user