tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge with e->dest_idx.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 25 Nov 2004 00:34:35 +0000 (00:34 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 25 Nov 2004 00:34:35 +0000 (00:34 +0000)
* tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
with e->dest_idx.

From-SVN: r91264

gcc/ChangeLog
gcc/tree-phinodes.c

index ddbcfca99ab27113b3fcfa7be806b61f3627c9a4..ad7c33f1c7fb2c3f824c32c609f3b4ea0db7cc87 100644 (file)
@@ -3,6 +3,9 @@
        * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
        instead of calling phi_arg_from_edge.
 
+       * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
+       with e->dest_idx.
+
 2004-11-24  Ben Elliston  <bje@au.ibm.com>
 
        * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
index eec2fa3ed4fdff2d040164ecd332ccb7d1c06841..f566c808957d8d797c569267d287db770cb06329 100644 (file)
@@ -395,11 +395,7 @@ remove_phi_args (edge e)
   tree phi;
 
   for (phi = phi_nodes (e->dest); phi; phi = PHI_CHAIN (phi))
-    {
-      int index = phi_arg_from_edge (phi, e);
-      if (index >= 0)
-       remove_phi_arg_num (phi, index);
-    }
+    remove_phi_arg_num (phi, e->dest_idx);
 }
 
 /* Remove PHI node PHI from basic block BB.  If PREV is non-NULL, it is