aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-09-03 11:57:27 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-09-03 15:35:46 +0200
commit9fa5ba4c56ef558bc740e56654622d70f4166e48 (patch)
tree580a4ad3cc830708f7cf58e27c9938d3e25fedcf
parent7200a4424c45b1b10e138bb5c52f58f3cc7da4a0 (diff)
downloadgcc-9fa5ba4c56ef558bc740e56654622d70f4166e48.zip
gcc-9fa5ba4c56ef558bc740e56654622d70f4166e48.tar.gz
gcc-9fa5ba4c56ef558bc740e56654622d70f4166e48.tar.bz2
Add debug helper for jump thread paths.
Tested on x86-64 Linux. gcc/ChangeLog: * tree-ssa-threadupdate.c (debug): New.
-rw-r--r--gcc/tree-ssa-threadupdate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index d08e7d3..1d32a02 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -239,6 +239,12 @@ debug (const vec<jump_thread_edge *> &path)
dump_jump_thread_path (stderr, path, true);
}
+DEBUG_FUNCTION void
+debug (const vec<jump_thread_edge *> *path)
+{
+ debug (*path);
+}
+
/* Simple hashing function. For any given incoming edge E, we're going
to be most concerned with the final destination of its jump thread
path. So hash on the block index of the final edge in the path. */