aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-09-03 11:13:16 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-09-03 15:30:57 +0200
commit134289146468b0b7215159d1940a674e1c3b228e (patch)
treea7f709b94e0d121cbb974121d1380f5cbf8b827c /gcc
parentabcd2373635257773452153f02cbb116c91d3e79 (diff)
downloadgcc-134289146468b0b7215159d1940a674e1c3b228e.zip
gcc-134289146468b0b7215159d1940a674e1c3b228e.tar.gz
gcc-134289146468b0b7215159d1940a674e1c3b228e.tar.bz2
Improve path_range_query dumps.
Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-path.cc (path_range_query::dump): Dump path length. (path_range_query::precompute_ranges): Dump entire path.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gimple-range-path.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/gimple-range-path.cc b/gcc/gimple-range-path.cc
index 77b823e..6d6e5eb 100644
--- a/gcc/gimple-range-path.cc
+++ b/gcc/gimple-range-path.cc
@@ -92,7 +92,7 @@ path_range_query::dump (FILE *dump_file)
bitmap_iterator bi;
extern void dump_ranger (FILE *, const vec<basic_block> &);
- fprintf (dump_file, "Path is:\n");
+ fprintf (dump_file, "Path is (length=%d):\n", m_path->length ());
dump_ranger (dump_file, *m_path);
fprintf (dump_file, "Imports:\n");
@@ -315,7 +315,17 @@ path_range_query::precompute_ranges (const vec<basic_block> &path,
m_imports = imports;
if (DEBUG_SOLVER)
- fprintf (dump_file, "path_range_query: precompute_ranges\n");
+ {
+ fprintf (dump_file, "\npath_range_query: precompute_ranges for path: ");
+ for (unsigned i = path.length (); i > 0; --i)
+ {
+ basic_block bb = path[i - 1];
+ fprintf (dump_file, "BB %d", bb->index);
+ if (i > 1)
+ fprintf (dump_file, ", ");
+ }
+ fprintf (dump_file, "\n");
+ }
while (1)
{