summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-11 23:46:43 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-11 23:46:43 +0000
commit12a2c9ea8fbd3d9f0ee41997c0a4836fdc279a54 (patch)
treecc3946f3bc3042b593048b582924b9fa91aee532 /gcc/tree-ssa-alias.c
parentcabedb723ef124857631fe1b68ba33ff099f0b80 (diff)
downloadgcc-12a2c9ea8fbd3d9f0ee41997c0a4836fdc279a54.tar.gz
* tree-ssa-alias.c (dump_mem_ref_stats): Do not call
need_to_partition_p if there are no memory statements in the function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 7fc8f455bcc..ee03ffa2e6b 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);
}