Commit b14151b5 by Bernd Schmidt Committed by Bernd Schmidt

ira-int.h (struct live_range, [...]): Renamed from struct ira_allocno_live_range…

ira-int.h (struct live_range, [...]): Renamed from struct ira_allocno_live_range and allocno_live_range_t...

	* ira-int.h (struct live_range, live_range_t): Renamed from struct
	ira_allocno_live_range and allocno_live_range_t; all uses changed.
	* ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
	All uses changed.

From-SVN: r161350
parent 42ce1cc4
...@@ -45,6 +45,11 @@ ...@@ -45,6 +45,11 @@
ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
uses changed. uses changed.
* ira-int.h (struct live_range, live_range_t): Renamed from struct
ira_allocno_live_range and allocno_live_range_t; all uses changed.
* ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
All uses changed.
2010-06-24 Richard Earnshaw <rearnsha@arm.com> 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
* thumb2.md (thumb2_tlobits_cbranch): Delete. * thumb2.md (thumb2_tlobits_cbranch): Delete.
......
...@@ -383,8 +383,8 @@ rebuild_regno_allocno_maps (void) ...@@ -383,8 +383,8 @@ rebuild_regno_allocno_maps (void)
/* Pools for allocnos and allocno live ranges. */ /* Pools for allocnos and live ranges. */
static alloc_pool allocno_pool, allocno_live_range_pool; static alloc_pool allocno_pool, live_range_pool;
/* Vec containing references to all created allocnos. It is a /* Vec containing references to all created allocnos. It is a
container of array allocnos. */ container of array allocnos. */
...@@ -398,9 +398,9 @@ static VEC(ira_allocno_t,heap) *ira_conflict_id_allocno_map_vec; ...@@ -398,9 +398,9 @@ static VEC(ira_allocno_t,heap) *ira_conflict_id_allocno_map_vec;
static void static void
initiate_allocnos (void) initiate_allocnos (void)
{ {
allocno_live_range_pool live_range_pool
= create_alloc_pool ("allocno live ranges", = create_alloc_pool ("live ranges",
sizeof (struct ira_allocno_live_range), 100); sizeof (struct live_range), 100);
allocno_pool allocno_pool
= create_alloc_pool ("allocnos", sizeof (struct ira_allocno), 100); = create_alloc_pool ("allocnos", sizeof (struct ira_allocno), 100);
allocno_vec = VEC_alloc (ira_allocno_t, heap, max_reg_num () * 2); allocno_vec = VEC_alloc (ira_allocno_t, heap, max_reg_num () * 2);
...@@ -812,13 +812,13 @@ create_cap_allocno (ira_allocno_t a) ...@@ -812,13 +812,13 @@ create_cap_allocno (ira_allocno_t a)
} }
/* Create and return allocno live range with given attributes. */ /* Create and return allocno live range with given attributes. */
allocno_live_range_t live_range_t
ira_create_allocno_live_range (ira_allocno_t a, int start, int finish, ira_create_allocno_live_range (ira_allocno_t a, int start, int finish,
allocno_live_range_t next) live_range_t next)
{ {
allocno_live_range_t p; live_range_t p;
p = (allocno_live_range_t) pool_alloc (allocno_live_range_pool); p = (live_range_t) pool_alloc (live_range_pool);
p->allocno = a; p->allocno = a;
p->start = start; p->start = start;
p->finish = finish; p->finish = finish;
...@@ -827,22 +827,22 @@ ira_create_allocno_live_range (ira_allocno_t a, int start, int finish, ...@@ -827,22 +827,22 @@ ira_create_allocno_live_range (ira_allocno_t a, int start, int finish,
} }
/* Copy allocno live range R and return the result. */ /* Copy allocno live range R and return the result. */
static allocno_live_range_t static live_range_t
copy_allocno_live_range (allocno_live_range_t r) copy_allocno_live_range (live_range_t r)
{ {
allocno_live_range_t p; live_range_t p;
p = (allocno_live_range_t) pool_alloc (allocno_live_range_pool); p = (live_range_t) pool_alloc (live_range_pool);
*p = *r; *p = *r;
return p; return p;
} }
/* Copy allocno live range list given by its head R and return the /* Copy allocno live range list given by its head R and return the
result. */ result. */
allocno_live_range_t live_range_t
ira_copy_allocno_live_range_list (allocno_live_range_t r) ira_copy_allocno_live_range_list (live_range_t r)
{ {
allocno_live_range_t p, first, last; live_range_t p, first, last;
if (r == NULL) if (r == NULL)
return NULL; return NULL;
...@@ -861,11 +861,10 @@ ira_copy_allocno_live_range_list (allocno_live_range_t r) ...@@ -861,11 +861,10 @@ ira_copy_allocno_live_range_list (allocno_live_range_t r)
/* Merge ranges R1 and R2 and returns the result. The function /* Merge ranges R1 and R2 and returns the result. The function
maintains the order of ranges and tries to minimize number of the maintains the order of ranges and tries to minimize number of the
result ranges. */ result ranges. */
allocno_live_range_t live_range_t
ira_merge_allocno_live_ranges (allocno_live_range_t r1, ira_merge_allocno_live_ranges (live_range_t r1, live_range_t r2)
allocno_live_range_t r2)
{ {
allocno_live_range_t first, last, temp; live_range_t first, last, temp;
if (r1 == NULL) if (r1 == NULL)
return r2; return r2;
...@@ -939,8 +938,7 @@ ira_merge_allocno_live_ranges (allocno_live_range_t r1, ...@@ -939,8 +938,7 @@ ira_merge_allocno_live_ranges (allocno_live_range_t r1,
/* Return TRUE if live ranges R1 and R2 intersect. */ /* Return TRUE if live ranges R1 and R2 intersect. */
bool bool
ira_allocno_live_ranges_intersect_p (allocno_live_range_t r1, ira_allocno_live_ranges_intersect_p (live_range_t r1, live_range_t r2)
allocno_live_range_t r2)
{ {
/* Remember the live ranges are always kept ordered. */ /* Remember the live ranges are always kept ordered. */
while (r1 != NULL && r2 != NULL) while (r1 != NULL && r2 != NULL)
...@@ -957,16 +955,16 @@ ira_allocno_live_ranges_intersect_p (allocno_live_range_t r1, ...@@ -957,16 +955,16 @@ ira_allocno_live_ranges_intersect_p (allocno_live_range_t r1,
/* Free allocno live range R. */ /* Free allocno live range R. */
void void
ira_finish_allocno_live_range (allocno_live_range_t r) ira_finish_allocno_live_range (live_range_t r)
{ {
pool_free (allocno_live_range_pool, r); pool_free (live_range_pool, r);
} }
/* Free list of allocno live ranges starting with R. */ /* Free list of allocno live ranges starting with R. */
void void
ira_finish_allocno_live_range_list (allocno_live_range_t r) ira_finish_allocno_live_range_list (live_range_t r)
{ {
allocno_live_range_t next_r; live_range_t next_r;
for (; r != NULL; r = next_r) for (; r != NULL; r = next_r)
{ {
...@@ -1027,7 +1025,7 @@ finish_allocnos (void) ...@@ -1027,7 +1025,7 @@ finish_allocnos (void)
VEC_free (ira_allocno_t, heap, ira_conflict_id_allocno_map_vec); VEC_free (ira_allocno_t, heap, ira_conflict_id_allocno_map_vec);
VEC_free (ira_allocno_t, heap, allocno_vec); VEC_free (ira_allocno_t, heap, allocno_vec);
free_alloc_pool (allocno_pool); free_alloc_pool (allocno_pool);
free_alloc_pool (allocno_live_range_pool); free_alloc_pool (live_range_pool);
} }
...@@ -1658,7 +1656,7 @@ create_allocnos (void) ...@@ -1658,7 +1656,7 @@ create_allocnos (void)
/* The function changes allocno in range list given by R onto A. */ /* The function changes allocno in range list given by R onto A. */
static void static void
change_allocno_in_range_list (allocno_live_range_t r, ira_allocno_t a) change_allocno_in_range_list (live_range_t r, ira_allocno_t a)
{ {
for (; r != NULL; r = r->next) for (; r != NULL; r = r->next)
r->allocno = a; r->allocno = a;
...@@ -1668,7 +1666,7 @@ change_allocno_in_range_list (allocno_live_range_t r, ira_allocno_t a) ...@@ -1668,7 +1666,7 @@ change_allocno_in_range_list (allocno_live_range_t r, ira_allocno_t a)
static void static void
move_allocno_live_ranges (ira_allocno_t from, ira_allocno_t to) move_allocno_live_ranges (ira_allocno_t from, ira_allocno_t to)
{ {
allocno_live_range_t lr = ALLOCNO_LIVE_RANGES (from); live_range_t lr = ALLOCNO_LIVE_RANGES (from);
if (internal_flag_ira_verbose > 4 && ira_dump_file != NULL) if (internal_flag_ira_verbose > 4 && ira_dump_file != NULL)
{ {
...@@ -1688,7 +1686,7 @@ move_allocno_live_ranges (ira_allocno_t from, ira_allocno_t to) ...@@ -1688,7 +1686,7 @@ move_allocno_live_ranges (ira_allocno_t from, ira_allocno_t to)
static void static void
copy_allocno_live_ranges (ira_allocno_t from, ira_allocno_t to) copy_allocno_live_ranges (ira_allocno_t from, ira_allocno_t to)
{ {
allocno_live_range_t lr = ALLOCNO_LIVE_RANGES (from); live_range_t lr = ALLOCNO_LIVE_RANGES (from);
if (internal_flag_ira_verbose > 4 && ira_dump_file != NULL) if (internal_flag_ira_verbose > 4 && ira_dump_file != NULL)
{ {
...@@ -2148,7 +2146,7 @@ update_bad_spill_attribute (void) ...@@ -2148,7 +2146,7 @@ update_bad_spill_attribute (void)
int i; int i;
ira_allocno_t a; ira_allocno_t a;
ira_allocno_iterator ai; ira_allocno_iterator ai;
allocno_live_range_t r; live_range_t r;
enum reg_class cover_class; enum reg_class cover_class;
bitmap_head dead_points[N_REG_CLASSES]; bitmap_head dead_points[N_REG_CLASSES];
...@@ -2199,7 +2197,7 @@ setup_min_max_allocno_live_range_point (void) ...@@ -2199,7 +2197,7 @@ setup_min_max_allocno_live_range_point (void)
int i; int i;
ira_allocno_t a, parent_a, cap; ira_allocno_t a, parent_a, cap;
ira_allocno_iterator ai; ira_allocno_iterator ai;
allocno_live_range_t r; live_range_t r;
ira_loop_tree_node_t parent; ira_loop_tree_node_t parent;
FOR_EACH_ALLOCNO (a, ai) FOR_EACH_ALLOCNO (a, ai)
...@@ -2507,7 +2505,7 @@ ira_flattening (int max_regno_before_emit, int ira_max_point_before_emit) ...@@ -2507,7 +2505,7 @@ ira_flattening (int max_regno_before_emit, int ira_max_point_before_emit)
ira_allocno_t a, parent_a, first, second, node_first, node_second; ira_allocno_t a, parent_a, first, second, node_first, node_second;
ira_copy_t cp; ira_copy_t cp;
ira_loop_tree_node_t node; ira_loop_tree_node_t node;
allocno_live_range_t r; live_range_t r;
ira_allocno_iterator ai; ira_allocno_iterator ai;
ira_copy_iterator ci; ira_copy_iterator ci;
sparseset allocnos_live; sparseset allocnos_live;
...@@ -2875,7 +2873,7 @@ ira_build (bool loops_p) ...@@ -2875,7 +2873,7 @@ ira_build (bool loops_p)
{ {
int n, nr; int n, nr;
ira_allocno_t a; ira_allocno_t a;
allocno_live_range_t r; live_range_t r;
ira_allocno_iterator ai; ira_allocno_iterator ai;
n = 0; n = 0;
......
...@@ -2493,7 +2493,7 @@ collect_spilled_coalesced_allocnos (int *pseudo_regnos, int n, ...@@ -2493,7 +2493,7 @@ collect_spilled_coalesced_allocnos (int *pseudo_regnos, int n,
/* Array of live ranges of size IRA_ALLOCNOS_NUM. Live range for /* Array of live ranges of size IRA_ALLOCNOS_NUM. Live range for
given slot contains live ranges of coalesced allocnos assigned to given slot contains live ranges of coalesced allocnos assigned to
given slot. */ given slot. */
static allocno_live_range_t *slot_coalesced_allocnos_live_ranges; static live_range_t *slot_coalesced_allocnos_live_ranges;
/* Return TRUE if coalesced allocnos represented by ALLOCNO has live /* Return TRUE if coalesced allocnos represented by ALLOCNO has live
ranges intersected with live ranges of coalesced allocnos assigned ranges intersected with live ranges of coalesced allocnos assigned
...@@ -2522,7 +2522,7 @@ setup_slot_coalesced_allocno_live_ranges (ira_allocno_t allocno) ...@@ -2522,7 +2522,7 @@ setup_slot_coalesced_allocno_live_ranges (ira_allocno_t allocno)
{ {
int n; int n;
ira_allocno_t a; ira_allocno_t a;
allocno_live_range_t r; live_range_t r;
n = ALLOCNO_TEMP (allocno); n = ALLOCNO_TEMP (allocno);
for (a = ALLOCNO_NEXT_COALESCED_ALLOCNO (allocno);; for (a = ALLOCNO_NEXT_COALESCED_ALLOCNO (allocno);;
...@@ -2551,10 +2551,9 @@ coalesce_spill_slots (ira_allocno_t *spilled_coalesced_allocnos, int num) ...@@ -2551,10 +2551,9 @@ coalesce_spill_slots (ira_allocno_t *spilled_coalesced_allocnos, int num)
bitmap set_jump_crosses = regstat_get_setjmp_crosses (); bitmap set_jump_crosses = regstat_get_setjmp_crosses ();
slot_coalesced_allocnos_live_ranges slot_coalesced_allocnos_live_ranges
= (allocno_live_range_t *) ira_allocate (sizeof (allocno_live_range_t) = (live_range_t *) ira_allocate (sizeof (live_range_t) * ira_allocnos_num);
* ira_allocnos_num);
memset (slot_coalesced_allocnos_live_ranges, 0, memset (slot_coalesced_allocnos_live_ranges, 0,
sizeof (allocno_live_range_t) * ira_allocnos_num); sizeof (live_range_t) * ira_allocnos_num);
last_coalesced_allocno_num = 0; last_coalesced_allocno_num = 0;
/* Coalesce non-conflicting spilled allocnos preferring most /* Coalesce non-conflicting spilled allocnos preferring most
frequently used. */ frequently used. */
...@@ -3244,7 +3243,7 @@ fast_allocation (void) ...@@ -3244,7 +3243,7 @@ fast_allocation (void)
enum machine_mode mode; enum machine_mode mode;
ira_allocno_t a; ira_allocno_t a;
ira_allocno_iterator ai; ira_allocno_iterator ai;
allocno_live_range_t r; live_range_t r;
HARD_REG_SET conflict_hard_regs, *used_hard_regs; HARD_REG_SET conflict_hard_regs, *used_hard_regs;
sorted_allocnos = (ira_allocno_t *) ira_allocate (sizeof (ira_allocno_t) sorted_allocnos = (ira_allocno_t *) ira_allocate (sizeof (ira_allocno_t)
......
...@@ -71,7 +71,7 @@ build_conflict_bit_table (void) ...@@ -71,7 +71,7 @@ build_conflict_bit_table (void)
unsigned int j; unsigned int j;
enum reg_class cover_class; enum reg_class cover_class;
ira_allocno_t allocno, live_a; ira_allocno_t allocno, live_a;
allocno_live_range_t r; live_range_t r;
ira_allocno_iterator ai; ira_allocno_iterator ai;
sparseset allocnos_live; sparseset allocnos_live;
int allocno_set_words; int allocno_set_words;
......
...@@ -913,7 +913,7 @@ add_range_and_copies_from_move_list (move_t list, ira_loop_tree_node_t node, ...@@ -913,7 +913,7 @@ add_range_and_copies_from_move_list (move_t list, ira_loop_tree_node_t node,
move_t move; move_t move;
ira_allocno_t to, from, a; ira_allocno_t to, from, a;
ira_copy_t cp; ira_copy_t cp;
allocno_live_range_t r; live_range_t r;
bitmap_iterator bi; bitmap_iterator bi;
HARD_REG_SET hard_regs_live; HARD_REG_SET hard_regs_live;
......
...@@ -59,7 +59,7 @@ extern FILE *ira_dump_file; ...@@ -59,7 +59,7 @@ extern FILE *ira_dump_file;
/* Typedefs for pointers to allocno live range, allocno, and copy of /* Typedefs for pointers to allocno live range, allocno, and copy of
allocnos. */ allocnos. */
typedef struct ira_allocno_live_range *allocno_live_range_t; typedef struct live_range *live_range_t;
typedef struct ira_allocno *ira_allocno_t; typedef struct ira_allocno *ira_allocno_t;
typedef struct ira_allocno_copy *ira_copy_t; typedef struct ira_allocno_copy *ira_copy_t;
...@@ -196,7 +196,7 @@ extern ira_loop_tree_node_t ira_loop_nodes; ...@@ -196,7 +196,7 @@ extern ira_loop_tree_node_t ira_loop_nodes;
conflicts for other allocnos (e.g. to assign stack memory slot) we conflicts for other allocnos (e.g. to assign stack memory slot) we
use the live ranges. If the live ranges of two allocnos are use the live ranges. If the live ranges of two allocnos are
intersected, the allocnos are in conflict. */ intersected, the allocnos are in conflict. */
struct ira_allocno_live_range struct live_range
{ {
/* Allocno whose live range is described by given structure. */ /* Allocno whose live range is described by given structure. */
ira_allocno_t allocno; ira_allocno_t allocno;
...@@ -204,9 +204,9 @@ struct ira_allocno_live_range ...@@ -204,9 +204,9 @@ struct ira_allocno_live_range
int start, finish; int start, finish;
/* Next structure describing program points where the allocno /* Next structure describing program points where the allocno
lives. */ lives. */
allocno_live_range_t next; live_range_t next;
/* Pointer to structures with the same start/finish. */ /* Pointer to structures with the same start/finish. */
allocno_live_range_t start_next, finish_next; live_range_t start_next, finish_next;
}; };
/* Program points are enumerated by numbers from range /* Program points are enumerated by numbers from range
...@@ -220,7 +220,7 @@ extern int ira_max_point; ...@@ -220,7 +220,7 @@ extern int ira_max_point;
/* Arrays of size IRA_MAX_POINT mapping a program point to the allocno /* Arrays of size IRA_MAX_POINT mapping a program point to the allocno
live ranges with given start/finish point. */ live ranges with given start/finish point. */
extern allocno_live_range_t *ira_start_point_ranges, *ira_finish_point_ranges; extern live_range_t *ira_start_point_ranges, *ira_finish_point_ranges;
/* A structure representing an allocno (allocation entity). Allocno /* A structure representing an allocno (allocation entity). Allocno
represents a pseudo-register in an allocation region. If represents a pseudo-register in an allocation region. If
...@@ -305,7 +305,7 @@ struct ira_allocno ...@@ -305,7 +305,7 @@ struct ira_allocno
allocno lives. We always maintain the list in such way that *the allocno lives. We always maintain the list in such way that *the
ranges in the list are not intersected and ordered by decreasing ranges in the list are not intersected and ordered by decreasing
their program points*. */ their program points*. */
allocno_live_range_t live_ranges; live_range_t live_ranges;
/* Before building conflicts the two member values are /* Before building conflicts the two member values are
correspondingly minimal and maximal points of the accumulated correspondingly minimal and maximal points of the accumulated
allocno live ranges. After building conflicts the values are allocno live ranges. After building conflicts the values are
...@@ -852,16 +852,13 @@ extern void ira_allocate_allocno_conflict_vec (ira_allocno_t, int); ...@@ -852,16 +852,13 @@ extern void ira_allocate_allocno_conflict_vec (ira_allocno_t, int);
extern void ira_allocate_allocno_conflicts (ira_allocno_t, int); extern void ira_allocate_allocno_conflicts (ira_allocno_t, int);
extern void ira_add_allocno_conflict (ira_allocno_t, ira_allocno_t); extern void ira_add_allocno_conflict (ira_allocno_t, ira_allocno_t);
extern void ira_print_expanded_allocno (ira_allocno_t); extern void ira_print_expanded_allocno (ira_allocno_t);
extern allocno_live_range_t ira_create_allocno_live_range extern live_range_t ira_create_allocno_live_range (ira_allocno_t, int, int,
(ira_allocno_t, int, int, allocno_live_range_t); live_range_t);
extern allocno_live_range_t ira_copy_allocno_live_range_list extern live_range_t ira_copy_allocno_live_range_list (live_range_t);
(allocno_live_range_t); extern live_range_t ira_merge_allocno_live_ranges (live_range_t, live_range_t);
extern allocno_live_range_t ira_merge_allocno_live_ranges extern bool ira_allocno_live_ranges_intersect_p (live_range_t, live_range_t);
(allocno_live_range_t, allocno_live_range_t); extern void ira_finish_allocno_live_range (live_range_t);
extern bool ira_allocno_live_ranges_intersect_p (allocno_live_range_t, extern void ira_finish_allocno_live_range_list (live_range_t);
allocno_live_range_t);
extern void ira_finish_allocno_live_range (allocno_live_range_t);
extern void ira_finish_allocno_live_range_list (allocno_live_range_t);
extern void ira_free_allocno_updated_costs (ira_allocno_t); extern void ira_free_allocno_updated_costs (ira_allocno_t);
extern ira_copy_t ira_create_copy (ira_allocno_t, ira_allocno_t, extern ira_copy_t ira_create_copy (ira_allocno_t, ira_allocno_t,
int, bool, rtx, ira_loop_tree_node_t); int, bool, rtx, ira_loop_tree_node_t);
...@@ -888,8 +885,8 @@ extern void ira_tune_allocno_costs_and_cover_classes (void); ...@@ -888,8 +885,8 @@ extern void ira_tune_allocno_costs_and_cover_classes (void);
/* ira-lives.c */ /* ira-lives.c */
extern void ira_rebuild_start_finish_chains (void); extern void ira_rebuild_start_finish_chains (void);
extern void ira_print_live_range_list (FILE *, allocno_live_range_t); extern void ira_print_live_range_list (FILE *, live_range_t);
extern void ira_debug_live_range_list (allocno_live_range_t); extern void ira_debug_live_range_list (live_range_t);
extern void ira_debug_allocno_live_ranges (ira_allocno_t); extern void ira_debug_allocno_live_ranges (ira_allocno_t);
extern void ira_debug_live_ranges (void); extern void ira_debug_live_ranges (void);
extern void ira_create_allocno_live_ranges (void); extern void ira_create_allocno_live_ranges (void);
......
...@@ -54,7 +54,7 @@ int ira_max_point; ...@@ -54,7 +54,7 @@ int ira_max_point;
/* Arrays of size IRA_MAX_POINT mapping a program point to the allocno /* Arrays of size IRA_MAX_POINT mapping a program point to the allocno
live ranges with given start/finish point. */ live ranges with given start/finish point. */
allocno_live_range_t *ira_start_point_ranges, *ira_finish_point_ranges; live_range_t *ira_start_point_ranges, *ira_finish_point_ranges;
/* Number of the current program point. */ /* Number of the current program point. */
static int curr_point; static int curr_point;
...@@ -112,7 +112,7 @@ make_hard_regno_dead (int regno) ...@@ -112,7 +112,7 @@ make_hard_regno_dead (int regno)
static void static void
make_allocno_born (ira_allocno_t a) make_allocno_born (ira_allocno_t a)
{ {
allocno_live_range_t p = ALLOCNO_LIVE_RANGES (a); live_range_t p = ALLOCNO_LIVE_RANGES (a);
sparseset_set_bit (allocnos_live, ALLOCNO_NUM (a)); sparseset_set_bit (allocnos_live, ALLOCNO_NUM (a));
IOR_HARD_REG_SET (ALLOCNO_CONFLICT_HARD_REGS (a), hard_regs_live); IOR_HARD_REG_SET (ALLOCNO_CONFLICT_HARD_REGS (a), hard_regs_live);
...@@ -131,7 +131,7 @@ update_allocno_pressure_excess_length (ira_allocno_t a) ...@@ -131,7 +131,7 @@ update_allocno_pressure_excess_length (ira_allocno_t a)
{ {
int start, i; int start, i;
enum reg_class cover_class, cl; enum reg_class cover_class, cl;
allocno_live_range_t p; live_range_t p;
cover_class = ALLOCNO_COVER_CLASS (a); cover_class = ALLOCNO_COVER_CLASS (a);
for (i = 0; for (i = 0;
...@@ -153,7 +153,7 @@ update_allocno_pressure_excess_length (ira_allocno_t a) ...@@ -153,7 +153,7 @@ update_allocno_pressure_excess_length (ira_allocno_t a)
static void static void
make_allocno_dead (ira_allocno_t a) make_allocno_dead (ira_allocno_t a)
{ {
allocno_live_range_t p; live_range_t p;
p = ALLOCNO_LIVE_RANGES (a); p = ALLOCNO_LIVE_RANGES (a);
ira_assert (p != NULL); ira_assert (p != NULL);
...@@ -1140,18 +1140,18 @@ create_start_finish_chains (void) ...@@ -1140,18 +1140,18 @@ create_start_finish_chains (void)
{ {
ira_allocno_t a; ira_allocno_t a;
ira_allocno_iterator ai; ira_allocno_iterator ai;
allocno_live_range_t r; live_range_t r;
ira_start_point_ranges ira_start_point_ranges
= (allocno_live_range_t *) ira_allocate (ira_max_point = (live_range_t *) ira_allocate (ira_max_point
* sizeof (allocno_live_range_t)); * sizeof (live_range_t));
memset (ira_start_point_ranges, 0, memset (ira_start_point_ranges, 0,
ira_max_point * sizeof (allocno_live_range_t)); ira_max_point * sizeof (live_range_t));
ira_finish_point_ranges ira_finish_point_ranges
= (allocno_live_range_t *) ira_allocate (ira_max_point = (live_range_t *) ira_allocate (ira_max_point
* sizeof (allocno_live_range_t)); * sizeof (live_range_t));
memset (ira_finish_point_ranges, 0, memset (ira_finish_point_ranges, 0,
ira_max_point * sizeof (allocno_live_range_t)); ira_max_point * sizeof (live_range_t));
FOR_EACH_ALLOCNO (a, ai) FOR_EACH_ALLOCNO (a, ai)
{ {
for (r = ALLOCNO_LIVE_RANGES (a); r != NULL; r = r->next) for (r = ALLOCNO_LIVE_RANGES (a); r != NULL; r = r->next)
...@@ -1185,7 +1185,7 @@ remove_some_program_points_and_update_live_ranges (void) ...@@ -1185,7 +1185,7 @@ remove_some_program_points_and_update_live_ranges (void)
int *map; int *map;
ira_allocno_t a; ira_allocno_t a;
ira_allocno_iterator ai; ira_allocno_iterator ai;
allocno_live_range_t r; live_range_t r;
bitmap born_or_died; bitmap born_or_died;
bitmap_iterator bi; bitmap_iterator bi;
...@@ -1223,7 +1223,7 @@ remove_some_program_points_and_update_live_ranges (void) ...@@ -1223,7 +1223,7 @@ remove_some_program_points_and_update_live_ranges (void)
/* Print live ranges R to file F. */ /* Print live ranges R to file F. */
void void
ira_print_live_range_list (FILE *f, allocno_live_range_t r) ira_print_live_range_list (FILE *f, live_range_t r)
{ {
for (; r != NULL; r = r->next) for (; r != NULL; r = r->next)
fprintf (f, " [%d..%d]", r->start, r->finish); fprintf (f, " [%d..%d]", r->start, r->finish);
...@@ -1232,7 +1232,7 @@ ira_print_live_range_list (FILE *f, allocno_live_range_t r) ...@@ -1232,7 +1232,7 @@ ira_print_live_range_list (FILE *f, allocno_live_range_t r)
/* Print live ranges R to stderr. */ /* Print live ranges R to stderr. */
void void
ira_debug_live_range_list (allocno_live_range_t r) ira_debug_live_range_list (live_range_t r)
{ {
ira_print_live_range_list (stderr, r); ira_print_live_range_list (stderr, r);
} }
......
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