From be6be25851b6c7271afb86219f18bf9edffebe2e Mon Sep 17 00:00:00 2001 From: Kazu Hirata <kazu@cs.umass.edu> Date: Thu, 25 Nov 2004 00:14:21 +0000 Subject: [PATCH] tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx instead of calling phi_arg_from_edge. * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx instead of calling phi_arg_from_edge. From-SVN: r91259 --- gcc/ChangeLog | 5 +++++ gcc/tree-outof-ssa.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28386135d3bb..ddbcfca99ab2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-24 Kazu Hirata <kazu@cs.umass.edu> + + * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx + instead of calling phi_arg_from_edge. + 2004-11-24 Ben Elliston <bje@au.ibm.com> * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove. diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 20409d39e4bc..621366b85ae2 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -590,10 +590,7 @@ coalesce_abnormal_edges (var_map map, conflict_graph graph, root_var_p rv) if (x == NO_PARTITION) continue; - y = phi_arg_from_edge (phi, e); - gcc_assert (y != -1); - - tmp = PHI_ARG_DEF (phi, y); + tmp = PHI_ARG_DEF (phi, e->dest_idx); #ifdef ENABLE_CHECKING if (!phi_ssa_name_p (tmp)) { -- GitLab