From: Diego Novillo Date: Wed, 11 Apr 2007 23:46:43 +0000 (+0000) Subject: tree-ssa-alias.c (dump_mem_ref_stats): Do not call need_to_partition_p if there are... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0de107cf673a6519ace90b922fa8238290770297;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc2019ac6a9..34c970e3dce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-04-11 Diego Novillo + + * 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 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed. 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); }