tree-ssa-alias.c (dump_mem_ref_stats): Do not call need_to_partition_p if there are...
authorDiego Novillo <dnovillo@redhat.com>
Wed, 11 Apr 2007 23:46:43 +0000 (23:46 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Wed, 11 Apr 2007 23:46:43 +0000 (19:46 -0400)
* 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

gcc/ChangeLog
gcc/tree-ssa-alias.c

index cc2019ac6a981b8e6d96f59fc30f4e59c1a505a2..34c970e3dcecfd2399a65df0d837fc1d914032c2 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 7fc8f455bcce08041607df1c52004c1664a4fb37..ee03ffa2e6b9d3b2c171e44d17821cf575cd21b5 100644 (file)
@@ -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);
 }