aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ter.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-ter.c')
-rw-r--r--gcc/tree-ssa-ter.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/tree-ssa-ter.c b/gcc/tree-ssa-ter.c
index 2a772b2..c7d8b7e 100644
--- a/gcc/tree-ssa-ter.c
+++ b/gcc/tree-ssa-ter.c
@@ -185,8 +185,6 @@ extern void debug_ter (FILE *, temp_expr_table *);
static temp_expr_table *
new_temp_expr_table (var_map map)
{
- unsigned x;
-
temp_expr_table *t = XNEW (struct temp_expr_table);
t->map = map;
@@ -201,12 +199,13 @@ new_temp_expr_table (var_map map)
t->replaceable_expressions = NULL;
t->num_in_part = XCNEWVEC (int, num_var_partitions (map));
- for (x = 1; x < num_ssa_names; x++)
+
+ unsigned x;
+ tree name;
+
+ FOR_EACH_SSA_NAME (x, name, cfun)
{
int p;
- tree name = ssa_name (x);
- if (!name)
- continue;
p = var_to_partition (map, name);
if (p != NO_PARTITION)
t->num_in_part[p]++;