aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-18 21:49:12 +0000
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-18 21:49:12 +0000
commit3ea079d94f8f41533e229ed0f53533bd0a1cc846 (patch)
tree77790c8c83704d406d4996f83d0a879c1f794a4a
parent2115347cbefb282059029cc4d249fe4e0c4a5e5d (diff)
* tree-ssa-live.c (new_tree_live_info): Set num_blocks to
last_basic_block instead of n_basic_blocks. (calculate_live_on_entry): Use last_basic_block instead of n_basic_blocks. (calculate_live_on_exit): Same. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79641 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.tree-ssa8
-rw-r--r--gcc/tree-ssa-live.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog.tree-ssa b/gcc/ChangeLog.tree-ssa
index b08d8a57384..a9a306e8955 100644
--- a/gcc/ChangeLog.tree-ssa
+++ b/gcc/ChangeLog.tree-ssa
@@ -1,3 +1,11 @@
+2003-03-18 Devang Patel <dpatel@apple.com>
+
+ * tree-ssa-live.c (new_tree_live_info): Set num_blocks to
+ last_basic_block instead of n_basic_blocks.
+ (calculate_live_on_entry): Use last_basic_block instead of
+ n_basic_blocks.
+ (calculate_live_on_exit): Same.
+
2004-03-17 Jeff Law <law@redhat.com>
* tree-tailcall.c (find_tail_calls): Tighten test for tail recursion.
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c
index 78c5198a093..c93955f7ed1 100644
--- a/gcc/tree-ssa-live.c
+++ b/gcc/tree-ssa-live.c
@@ -422,7 +422,7 @@ new_tree_live_info (var_map map)
live = (tree_live_info_p) xmalloc (sizeof (struct tree_live_info_d));
live->map = map;
- live->num_blocks = n_basic_blocks;
+ live->num_blocks = last_basic_block;
live->global = BITMAP_XMALLOC ();
@@ -634,7 +634,7 @@ calculate_live_on_entry (var_map map)
}
}
- VARRAY_INT_INIT (stack, n_basic_blocks, "stack");
+ VARRAY_INT_INIT (stack, last_basic_block, "stack");
EXECUTE_IF_SET_IN_BITMAP (live->global, 0, i,
{
live_worklist (live, stack, i);
@@ -743,8 +743,8 @@ calculate_live_on_exit (tree_live_info_p liveinfo)
bitmap on_entry;
var_map map = liveinfo->map;
- on_exit = (bitmap *)xmalloc (n_basic_blocks * sizeof (bitmap));
- for (x = 0; x < n_basic_blocks; x++)
+ on_exit = (bitmap *)xmalloc (last_basic_block * sizeof (bitmap));
+ for (x = 0; x < last_basic_block; x++)
on_exit[x] = BITMAP_XMALLOC ();
/* Set all the live-on-exit bits for uses in PHIs. */