From 9fa5ba4c56ef558bc740e56654622d70f4166e48 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Fri, 3 Sep 2021 11:57:27 +0200 Subject: [PATCH] Add debug helper for jump thread paths. Tested on x86-64 Linux. gcc/ChangeLog: * tree-ssa-threadupdate.c (debug): New. --- gcc/tree-ssa-threadupdate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index d08e7d30d8dc..1d32a0230fbd 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -239,6 +239,12 @@ debug (const vec &path) dump_jump_thread_path (stderr, path, true); } +DEBUG_FUNCTION void +debug (const vec *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. */ -- 2.47.2