From d53a5d8b6eff77ddc7acac845aded3917d932783 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 18 Nov 2017 00:25:07 +0100 Subject: [PATCH] * cgraph.c (cgraph_node::dump): Do IPA sanity checking on IPA counts. From-SVN: r254909 --- gcc/ChangeLog | 4 ++++ gcc/cgraph.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76029b013b4..da5aea09e95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-17 Jan Hubicka + + * cgraph.c (cgraph_node::dump): Do IPA sanity checking on IPA counts. + 2017-11-17 Steve Ellcey * config/aarch64/aarch64-simd.md (fnma4): Move neg operator diff --git a/gcc/cgraph.c b/gcc/cgraph.c index bc60fc90f56..69eb9bb2341 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"); } } -- 2.30.2