aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-04-09 11:28:47 +0200
committerRichard Biener <rguenther@suse.de>2024-05-02 09:01:11 +0200
commit5176402d6fdbf131d176b5f43ac6449c1bda072b (patch)
treee3db2c6cef3074fc32ba0c44f5969f3e314f0396 /gcc
parent66f49ccd409c7a3f6eb89dd78e275ab57c983c79 (diff)
downloadgcc-5176402d6fdbf131d176b5f43ac6449c1bda072b.zip
gcc-5176402d6fdbf131d176b5f43ac6449c1bda072b.tar.gz
gcc-5176402d6fdbf131d176b5f43ac6449c1bda072b.tar.bz2
Remove live-info global bitmap
The following removes the unused tree_live_info_d->global bitmap. * tree-ssa-live.h (tree_live_info_d::global): Remove. (partition_is_global): Likewise. (make_live_on_entry): Do not set bit in global. * tree-ssa-live.cc (new_tree_live_info): Do not allocate global bitmap. (delete_tree_live_info): Do not release it. (set_var_live_on_entry): Do not set bits in it.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-ssa-live.cc13
-rw-r--r--gcc/tree-ssa-live.h13
2 files changed, 1 insertions, 25 deletions
diff --git a/gcc/tree-ssa-live.cc b/gcc/tree-ssa-live.cc
index d94e94e..fa6be2f 100644
--- a/gcc/tree-ssa-live.cc
+++ b/gcc/tree-ssa-live.cc
@@ -1015,7 +1015,6 @@ new_tree_live_info (var_map map)
live->work_stack = XNEWVEC (int, last_basic_block_for_fn (cfun));
live->stack_top = live->work_stack;
- live->global = BITMAP_ALLOC (NULL);
return live;
}
@@ -1035,7 +1034,6 @@ delete_tree_live_info (tree_live_info_p live)
bitmap_obstack_release (&live->liveout_obstack);
free (live->liveout);
}
- BITMAP_FREE (live->global);
free (live->work_stack);
free (live);
}
@@ -1123,7 +1121,6 @@ set_var_live_on_entry (tree ssa_name, tree_live_info_p live)
use_operand_p use;
basic_block def_bb = NULL;
imm_use_iterator imm_iter;
- bool global = false;
p = var_to_partition (live->map, ssa_name);
if (p == NO_PARTITION)
@@ -1173,16 +1170,8 @@ set_var_live_on_entry (tree ssa_name, tree_live_info_p live)
/* If there was a live on entry use, set the bit. */
if (add_block)
- {
- global = true;
- bitmap_set_bit (&live->livein[add_block->index], p);
- }
+ bitmap_set_bit (&live->livein[add_block->index], p);
}
-
- /* If SSA_NAME is live on entry to at least one block, fill in all the live
- on entry blocks between the def and all the uses. */
- if (global)
- bitmap_set_bit (live->global, p);
}
diff --git a/gcc/tree-ssa-live.h b/gcc/tree-ssa-live.h
index e86ce0c..ac39091 100644
--- a/gcc/tree-ssa-live.h
+++ b/gcc/tree-ssa-live.h
@@ -237,9 +237,6 @@ typedef struct tree_live_info_d
/* Var map this relates to. */
var_map map;
- /* Bitmap indicating which partitions are global. */
- bitmap global;
-
/* Bitmaps of live on entry blocks for partition elements. */
bitmap_head *livein;
@@ -276,15 +273,6 @@ extern bitmap live_vars_at_stmt (vec<bitmap_head> &, live_vars_map *,
gimple *);
extern void destroy_live_vars (vec<bitmap_head> &);
-/* Return TRUE if P is marked as a global in LIVE. */
-
-inline int
-partition_is_global (tree_live_info_p live, int p)
-{
- gcc_checking_assert (live->global);
- return bitmap_bit_p (live->global, p);
-}
-
/* Return the bitmap from LIVE representing the live on entry blocks for
partition P. */
@@ -329,7 +317,6 @@ inline void
make_live_on_entry (tree_live_info_p live, basic_block bb , int p)
{
bitmap_set_bit (&live->livein[bb->index], p);
- bitmap_set_bit (live->global, p);
}