aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow-inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r--gcc/tree-flow-inline.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index e3c955e..ea5e741 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -393,15 +393,9 @@ set_phi_nodes (basic_block bb, tree l)
static inline int
phi_arg_from_edge (tree phi, edge e)
{
- int i;
gcc_assert (phi);
gcc_assert (TREE_CODE (phi) == PHI_NODE);
-
- for (i = 0; i < PHI_NUM_ARGS (phi); i++)
- if (PHI_ARG_EDGE (phi, i) == e)
- return i;
-
- return -1;
+ return e->dest_idx;
}
/* Mark VAR as used, so that it'll be preserved during rtl expansion. */