OSDN Git Service

* tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Nov 2004 00:34:35 +0000 (00:34 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Nov 2004 00:34:35 +0000 (00:34 +0000)
with e->dest_idx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91264 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-phinodes.c

index ddbcfca..ad7c33f 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 eec2fa3..f566c80 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