tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 26 Apr 2005 17:11:25 +0000 (17:11 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Tue, 26 Apr 2005 17:11:25 +0000 (17:11 +0000)
2005-04-26  Andrew MacLeod  <amacleod@redhat.com>

* tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt.

From-SVN: r98778

gcc/ChangeLog
gcc/tree-cfg.c

index 4cf31bc..0efc2a8 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
+
+       * tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt.
+
 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
index 93714d7..c6494cc 100644 (file)
@@ -3011,6 +3011,7 @@ bsi_replace (const block_stmt_iterator *bsi, tree stmt, bool preserve_eh_info)
        add_stmt_to_eh_region (stmt, eh_region);
     }
 
+  delink_stmt_imm_use (orig_stmt);
   *bsi_stmt_ptr (*bsi) = stmt;
   mark_stmt_modified (stmt);
   update_modified_stmts (stmt);