aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-18 00:25:07 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-17 23:25:07 +0000
commitd53a5d8b6eff77ddc7acac845aded3917d932783 (patch)
tree92a9bf94cbefbc4e1298dd6b14d8624242ca4a98 /gcc/cgraph.c
parentc51081fc9f11848aa17d27dfb4224bf2ef32bacc (diff)
downloadgcc-d53a5d8b6eff77ddc7acac845aded3917d932783.zip
gcc-d53a5d8b6eff77ddc7acac845aded3917d932783.tar.gz
gcc-d53a5d8b6eff77ddc7acac845aded3917d932783.tar.bz2
* cgraph.c (cgraph_node::dump): Do IPA sanity checking on IPA counts.
From-SVN: r254909
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index bc60fc9..69eb9bb 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2160,7 +2160,7 @@ cgraph_node::dump (FILE *f)
fprintf (f, "%s ", edge->caller->dump_name ());
edge->dump_edge_flags (f);
if (edge->count.initialized_p ())
- sum += edge->count;
+ sum += edge->count.ipa ();
}
fprintf (f, "\n Calls: ");
@@ -2184,7 +2184,7 @@ cgraph_node::dump (FILE *f)
if (global.inlined_to
|| (symtab->state < EXPANSION
&& ultimate_alias_target () == this && only_called_directly_p ()))
- ok = !count.differs_from_p (sum);
+ ok = !count.ipa ().differs_from_p (sum);
else if (count.ipa () > profile_count::from_gcov_type (100)
&& count.ipa () < sum.apply_scale (99, 100))
ok = false, min = true;
@@ -2196,7 +2196,7 @@ cgraph_node::dump (FILE *f)
fprintf (f, ", should be at most ");
else
fprintf (f, ", should be ");
- count.dump (f);
+ count.ipa ().dump (f);
fprintf (f, "\n");
}
}