Commit 17c665a9 by Michael Matz Committed by Michael Matz

tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate beyond num_ssa_names.

	* tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
	beyond num_ssa_names.
	* tree-ssa-ter.c (free_temp_expr_table): Likewise.
	* tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.

From-SVN: r146815
parent ce372372
2009-04-26 Michael Matz <matz@suse.de>
* tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
beyond num_ssa_names.
* tree-ssa-ter.c (free_temp_expr_table): Likewise.
* tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2009-04-26 Jakub Jelinek <jakub@redhat.com> 2009-04-26 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/39543 PR inline-asm/39543
......
...@@ -974,7 +974,7 @@ create_outofssa_var_map (coalesce_list_p cl, bitmap used_in_copy) ...@@ -974,7 +974,7 @@ create_outofssa_var_map (coalesce_list_p cl, bitmap used_in_copy)
used_in_virtual_ops = BITMAP_ALLOC (NULL); used_in_virtual_ops = BITMAP_ALLOC (NULL);
#endif #endif
map = init_var_map (num_ssa_names + 1); map = init_var_map (num_ssa_names);
FOR_EACH_BB (bb) FOR_EACH_BB (bb)
{ {
......
...@@ -291,7 +291,7 @@ rename_ssa_copies (void) ...@@ -291,7 +291,7 @@ rename_ssa_copies (void)
else else
debug = NULL; debug = NULL;
map = init_var_map (num_ssa_names + 1); map = init_var_map (num_ssa_names);
FOR_EACH_BB (bb) FOR_EACH_BB (bb)
{ {
...@@ -339,7 +339,7 @@ rename_ssa_copies (void) ...@@ -339,7 +339,7 @@ rename_ssa_copies (void)
/* Now one more pass to make all elements of a partition share the same /* Now one more pass to make all elements of a partition share the same
root variable. */ root variable. */
for (x = 1; x <= num_ssa_names; x++) for (x = 1; x < num_ssa_names; x++)
{ {
part_var = partition_to_var (map, x); part_var = partition_to_var (map, x);
if (!part_var) if (!part_var)
......
...@@ -225,7 +225,7 @@ free_temp_expr_table (temp_expr_table_p t) ...@@ -225,7 +225,7 @@ free_temp_expr_table (temp_expr_table_p t)
unsigned x; unsigned x;
for (x = 0; x <= num_var_partitions (t->map); x++) for (x = 0; x <= num_var_partitions (t->map); x++)
gcc_assert (!t->kill_list[x]); gcc_assert (!t->kill_list[x]);
for (x = 0; x < num_ssa_names + 1; x++) for (x = 0; x < num_ssa_names; x++)
{ {
gcc_assert (t->expr_decl_uids[x] == NULL); gcc_assert (t->expr_decl_uids[x] == NULL);
gcc_assert (t->partition_dependencies[x] == NULL); gcc_assert (t->partition_dependencies[x] == NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment