This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] O(1) PHI argument look-up - Part 13/n
Hi Jeff,
> Actually, use indx. "index" on some old systems is actually a function
> in the C library, so we've generally tried to avoid using it as a
> variable name.
OK. Built cc1. Committed as obvious.
Kazu Hirata
2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-dom.c (cprop_into_successor_phis): Replace index
with indx.
Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dom.c,v
retrieving revision 2.70
diff -u -d -p -r2.70 tree-ssa-dom.c
--- tree-ssa-dom.c 24 Nov 2004 15:15:12 -0000 2.70
+++ tree-ssa-dom.c 24 Nov 2004 15:20:49 -0000
@@ -2290,7 +2290,7 @@ cprop_into_successor_phis (basic_block b
FOR_EACH_EDGE (e, ei, bb->succs)
{
tree phi;
- int index;
+ int indx;
/* If this is an abnormal edge, then we do not want to copy propagate
into the PHI alternative associated with this edge. */
@@ -2301,7 +2301,7 @@ cprop_into_successor_phis (basic_block b
if (! phi)
continue;
- index = e->dest_idx;
+ indx = e->dest_idx;
for ( ; phi; phi = PHI_CHAIN (phi))
{
tree new;
@@ -2310,7 +2310,7 @@ cprop_into_successor_phis (basic_block b
/* The alternative may be associated with a constant, so verify
it is an SSA_NAME before doing anything with it. */
- orig_p = PHI_ARG_DEF_PTR (phi, index);
+ orig_p = PHI_ARG_DEF_PTR (phi, indx);
orig = USE_FROM_PTR (orig_p);
if (TREE_CODE (orig) != SSA_NAME)
continue;
@@ -2318,7 +2318,7 @@ cprop_into_successor_phis (basic_block b
/* If the alternative is known to have a nonzero value, record
that fact in the PHI node itself for future use. */
if (bitmap_bit_p (nonzero_vars, SSA_NAME_VERSION (orig)))
- PHI_ARG_NONZERO (phi, index) = true;
+ PHI_ARG_NONZERO (phi, indx) = true;
/* If we have *ORIG_P in our constant/copy table, then replace
ORIG_P with its value in our constant/copy table. */