Do not record dependences from debug stmts in tail merging

The following avoids recording BB dependences for debug stmt uses.

	* tree-ssa-tail-merge.cc (same_succ_hash): Skip debug
	stmts.
This commit is contained in:
Richard Biener 2024-02-15 10:52:09 +01:00
parent bf883e6428
commit ab5fb0f993

View file

@ -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;