diff options
author | Diego Novillo <dnovillo@redhat.com> | 2007-04-11 23:46:43 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2007-04-11 19:46:43 -0400 |
commit | 0de107cf673a6519ace90b922fa8238290770297 (patch) | |
tree | cc3946f3bc3042b593048b582924b9fa91aee532 /gcc/tree-ssa-alias.c | |
parent | 55a700ac1f1421af8c732ed92d278c6f93336726 (diff) | |
download | gcc-0de107cf673a6519ace90b922fa8238290770297.zip gcc-0de107cf673a6519ace90b922fa8238290770297.tar.gz gcc-0de107cf673a6519ace90b922fa8238290770297.tar.bz2 |
tree-ssa-alias.c (dump_mem_ref_stats): Do not call need_to_partition_p if there are no memory statements in the function.
* tree-ssa-alias.c (dump_mem_ref_stats): Do not call
need_to_partition_p if there are no memory statements in the
function.
From-SVN: r123732
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 7fc8f45..ee03ffa 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -643,7 +643,7 @@ dump_mem_ref_stats (FILE *file) fprintf (file, "Partitioning thresholds: MAX = %d AVG = %d " "(%sNEED TO PARTITION)\n", MAX_ALIASED_VOPS, AVG_ALIASED_VOPS, - need_to_partition_p (stats) ? "" : "NO "); + stats->num_mem_stmts && need_to_partition_p (stats) ? "" : "NO "); fprintf (file, "Number of partitioned symbols: %ld\n", num_partitioned); fprintf (file, "Number of unpartitioned symbols: %ld\n", num_unpartitioned); } |