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
+2007-04-11 Diego Novillo <dnovillo@redhat.com>
+
+ * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
+ need_to_partition_p if there are no memory statements in the
+ function.
+
2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
* tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
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);
}