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 4cf31bca036576ed3e55566b5edeee6b4211719c..0efc2a853b9e3a67a80486fb80a3116c261ebca0 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 93714d7c8dacbd67eca50fec417e47efd7710d2d..c6494cc3d732b8e19766d20bf1554c72c5c15df4 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);