diff options
Diffstat (limited to 'gcc/tree-ssa-live.h')
-rw-r--r-- | gcc/tree-ssa-live.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/tree-ssa-live.h b/gcc/tree-ssa-live.h index d42bd87e2f7..70a3aa60fd3 100644 --- a/gcc/tree-ssa-live.h +++ b/gcc/tree-ssa-live.h @@ -226,8 +226,11 @@ typedef struct tree_live_info_d /* Bitmap indicating which partitions are global. */ bitmap global; - /* Bitmap of live on entry blocks for partition elements. */ - bitmap *livein; + /* Bitmaps of live on entry blocks for partition elements. */ + bitmap_head *livein; + + /* Bitmaps of what variables are live on exit for a basic blocks. */ + bitmap_head *liveout; /* Number of basic blocks when live on exit calculated. */ int num_blocks; @@ -237,9 +240,6 @@ typedef struct tree_live_info_d /* Top of workstack. */ int *stack_top; - - /* Bitmap of what variables are live on exit for a basic blocks. */ - bitmap *liveout; } *tree_live_info_p; @@ -273,7 +273,7 @@ live_on_entry (tree_live_info_p live, basic_block bb) && bb != ENTRY_BLOCK_PTR && bb != EXIT_BLOCK_PTR); - return live->livein[bb->index]; + return &live->livein[bb->index]; } @@ -287,7 +287,7 @@ live_on_exit (tree_live_info_p live, basic_block bb) && bb != ENTRY_BLOCK_PTR && bb != EXIT_BLOCK_PTR); - return live->liveout[bb->index]; + return &live->liveout[bb->index]; } @@ -306,9 +306,9 @@ live_var_map (tree_live_info_p live) static inline void live_merge_and_clear (tree_live_info_p live, int p1, int p2) { - gcc_checking_assert (live->livein[p1] && live->livein[p2]); - bitmap_ior_into (live->livein[p1], live->livein[p2]); - bitmap_zero (live->livein[p2]); + gcc_checking_assert (&live->livein[p1] && &live->livein[p2]); + bitmap_ior_into (&live->livein[p1], &live->livein[p2]); + bitmap_zero (&live->livein[p2]); } @@ -317,7 +317,7 @@ live_merge_and_clear (tree_live_info_p live, int p1, int p2) static 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->livein[bb->index], p); bitmap_set_bit (live->global, p); } |