]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IPA: reduce what we dump in normal mode
authorMartin Liska <mliska@suse.cz>
Tue, 2 Aug 2022 07:58:43 +0000 (09:58 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 2 Aug 2022 10:16:32 +0000 (12:16 +0200)
gcc/ChangeLog:

* profile.cc (compute_branch_probabilities): Dump details only
if TDF_DETAILS.
* symtab.cc (symtab_node::dump_base): Do not dump pointer unless
TDF_ADDRESS is used, it makes comparison harder.

gcc/profile.cc
gcc/symtab.cc

index 08af512cbcae392fca19d0f8b7283561bb7f51a4..92de821b8bb954a83dc11664a311ca68e3d34a59 100644 (file)
@@ -766,7 +766,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum)
              sum2 += freq2;
            }
        }
-      if (dump_file)
+      if (dump_file && (dump_flags & TDF_DETAILS))
        {
          double nsum1 = 0, nsum2 = 0;
          stats.qsort (cmp_stats);
index 8670337416e8a1459834578b3790b2d3602bd487..f2d96c0268bf303c1d777730908747f41ba564b9 100644 (file)
@@ -894,7 +894,8 @@ symtab_node::dump_base (FILE *f)
   };
 
   fprintf (f, "%s (%s)", dump_asm_name (), name ());
-  dump_addr (f, " @", (void *)this);
+  if (dump_flags & TDF_ADDRESS)
+    dump_addr (f, " @", (void *)this);
   fprintf (f, "\n  Type: %s", symtab_type_names[type]);
 
   if (definition)