* Re: [PATCH] Do not record dependences from debug stmts in tail merging
[not found] <20240215100038.F29DF3861865@sourceware.org>
@ 2024-02-15 10:08 ` Jakub Jelinek
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2024-02-15 10:08 UTC (permalink / raw)
To: Richard Biener; +Cc: gcc-patches
On Thu, Feb 15, 2024 at 11:00:29AM +0100, Richard Biener wrote:
> The following avoids recording BB dependences for debug stmt uses.
>
> Bootstrap and regtest running on x86_64-unknown-linux-gnu.
>
> It's unlikely a dependence is just because of debug stmts so
> actual compare-debug issues are very unlikely. Still spotted
> while investigating a CI regression mail (for an obsolete broken
> patch ...)
>
> * tree-ssa-tail-merge.cc (same_succ_hash): Skip debug
> stmts.
LGTM.
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Do not record dependences from debug stmts in tail merging
@ 2024-02-15 10:00 Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2024-02-15 10:00 UTC (permalink / raw)
To: gcc-patches
The following avoids recording BB dependences for debug stmt uses.
Bootstrap and regtest running on x86_64-unknown-linux-gnu.
It's unlikely a dependence is just because of debug stmts so
actual compare-debug issues are very unlikely. Still spotted
while investigating a CI regression mail (for an obsolete broken
patch ...)
* tree-ssa-tail-merge.cc (same_succ_hash): Skip debug
stmts.
---
gcc/tree-ssa-tail-merge.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/tree-ssa-tail-merge.cc b/gcc/tree-ssa-tail-merge.cc
index f4e6ae6e8a2..c8b4a79294d 100644
--- a/gcc/tree-ssa-tail-merge.cc
+++ b/gcc/tree-ssa-tail-merge.cc
@@ -474,6 +474,9 @@ same_succ_hash (const same_succ *e)
!gsi_end_p (gsi); gsi_next_nondebug (&gsi))
{
stmt = gsi_stmt (gsi);
+ if (is_gimple_debug (stmt))
+ continue;
+
stmt_update_dep_bb (stmt);
if (stmt_local_def (stmt))
continue;
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-15 10:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20240215100038.F29DF3861865@sourceware.org>
2024-02-15 10:08 ` [PATCH] Do not record dependences from debug stmts in tail merging Jakub Jelinek
2024-02-15 10:00 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).