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:
parent
bf883e6428
commit
ab5fb0f993
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue