]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add function name when dumping ranger contents.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 09:32:11 +0000 (11:32 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 13:30:57 +0000 (15:30 +0200)
These are minor cleanups to the dumping code.

Tested on x86-64 Linux.

gcc/ChangeLog:

* gimple-range-trace.cc (debug_seed_ranger): Remove static.
(dump_ranger): Dump function name.

gcc/gimple-range-trace.cc

index 1feb978e9284486f22c3418447472344a068bb70..449ed8373fd5a153d24b2605b0ccd8e8a564502b 100644 (file)
@@ -130,7 +130,7 @@ range_tracer::trailer (unsigned counter, const char *caller, bool result,
 
 // Query all statements in the IL to precalculate computable ranges in RANGER.
 
-static DEBUG_FUNCTION void
+DEBUG_FUNCTION void
 debug_seed_ranger (gimple_ranger &ranger)
 {
   // Recalculate SCEV to make sure the dump lists everything.
@@ -161,6 +161,11 @@ DEBUG_FUNCTION void
 dump_ranger (FILE *out)
 {
   gimple_ranger ranger;
+
+  fprintf (out, ";; Function ");
+  print_generic_expr (out, current_function_decl);
+  fprintf (out, "\n");
+
   debug_seed_ranger (ranger);
   ranger.dump (out);
 }