diff options
| author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-11 23:46:43 +0000 |
|---|---|---|
| committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-11 23:46:43 +0000 |
| commit | 12a2c9ea8fbd3d9f0ee41997c0a4836fdc279a54 (patch) | |
| tree | cc3946f3bc3042b593048b582924b9fa91aee532 | |
| parent | cabedb723ef124857631fe1b68ba33ff099f0b80 (diff) | |
| download | ppe42-gcc-12a2c9ea8fbd3d9f0ee41997c0a4836fdc279a54.tar.gz ppe42-gcc-12a2c9ea8fbd3d9f0ee41997c0a4836fdc279a54.zip | |
* 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
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/tree-ssa-alias.c | 2 |
2 files changed, 7 insertions, 1 deletions
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 <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. 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); } |

