]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add debug helper for jump thread paths.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 09:57:27 +0000 (11:57 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 13:35:46 +0000 (15:35 +0200)
Tested on x86-64 Linux.

gcc/ChangeLog:

* tree-ssa-threadupdate.c (debug): New.

gcc/tree-ssa-threadupdate.c

index d08e7d30d8dc9acaa627b2c73bd6845c7a5ec74c..1d32a0230fbd43a0172cdb1585f4ebc7436ed9c3 100644 (file)
@@ -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.  */