* [PATCH] Improve uninit diagnostic dumps
@ 2022-11-30 11:52 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-11-30 11:52 UTC (permalink / raw)
To: gcc-patches
The following dumps the edge a use is uninitialized in a PHI.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.
* tree-ssa-uninit.cc (find_uninit_use): Dump the edge for a
PHI node.
---
gcc/tree-ssa-uninit.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-uninit.cc b/gcc/tree-ssa-uninit.cc
index bf2e50511af..7fbc384f2d4 100644
--- a/gcc/tree-ssa-uninit.cc
+++ b/gcc/tree-ssa-uninit.cc
@@ -1249,8 +1249,8 @@ find_uninit_use (gphi *phi, unsigned uninit_opnds, int *bb_to_rpo)
if (dump_file && (dump_flags & TDF_DETAILS))
{
- fprintf (dump_file, "Found unguarded use in bb %u: ",
- use_bb->index);
+ fprintf (dump_file, "Found unguarded use on edge %u -> %u: ",
+ e->src->index, e->dest->index);
print_gimple_stmt (dump_file, use_stmt, 0);
}
/* Found a phi use that is not guarded, mark the phi_result as
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-30 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 11:52 [PATCH] Improve uninit diagnostic dumps Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).