31#define ENABLE_IRA_CHECKING
34#ifdef ENABLE_IRA_CHECKING
35#define ira_assert(c) gcc_assert (c)
39#define ira_assert(c) ((void)(0 && (c)))
47#define REG_FREQ_FROM_EDGE_FREQ(freq) \
48 (optimize_function_for_size_p (cfun) \
49 ? REG_FREQ_MAX : (freq * REG_FREQ_MAX / BB_FREQ_MAX) \
50 ? (freq * REG_FREQ_MAX / BB_FREQ_MAX) : 1)
161#if defined ENABLE_IRA_CHECKING && (GCC_VERSION >= 2007)
162#define IRA_BB_NODE_BY_INDEX(index) __extension__ \
163(({ ira_loop_tree_node_t _node = (&ira_bb_nodes[index]); \
164 if (_node->children != NULL || _node->loop != NULL || _node->bb == NULL)\
167 "\n%s: %d: error in %s: it is not a block node\n", \
168 __FILE__, __LINE__, __FUNCTION__); \
169 gcc_unreachable (); \
173#define IRA_BB_NODE_BY_INDEX(index) (&ira_bb_nodes[index])
176#define IRA_BB_NODE(bb) IRA_BB_NODE_BY_INDEX ((bb)->index)
187#if defined ENABLE_IRA_CHECKING && (GCC_VERSION >= 2007)
188#define IRA_LOOP_NODE_BY_INDEX(index) __extension__ \
189(({ ira_loop_tree_node_t const _node = (&ira_loop_nodes[index]); \
190 if (_node->children == NULL || _node->bb != NULL \
191 || (_node->loop == NULL && current_loops != NULL)) \
194 "\n%s: %d: error in %s: it is not a loop node\n", \
195 __FILE__, __LINE__, __FUNCTION__); \
196 gcc_unreachable (); \
200#define IRA_LOOP_NODE_BY_INDEX(index) (&ira_loop_nodes[index])
203#define IRA_LOOP_NODE(loop) IRA_LOOP_NODE_BY_INDEX ((loop)->num)
338 unsigned int no_stack_reg_p : 1, total_no_stack_reg_p : 1;
359#ifndef NUM_REGISTER_FILTERS
360#error "insn-config.h not included"
361#elif NUM_REGISTER_FILTERS
461#define ALLOCNO_NUM(A) ((A)->num)
462#define ALLOCNO_REGNO(A) ((A)->regno)
463#define ALLOCNO_REG(A) ((A)->reg)
464#define ALLOCNO_NEXT_REGNO_ALLOCNO(A) ((A)->next_regno_allocno)
465#define ALLOCNO_LOOP_TREE_NODE(A) ((A)->loop_tree_node)
466#define ALLOCNO_CAP(A) ((A)->cap)
467#define ALLOCNO_CAP_MEMBER(A) ((A)->cap_member)
468#define ALLOCNO_NREFS(A) ((A)->nrefs)
469#define ALLOCNO_FREQ(A) ((A)->freq)
470#define ALLOCNO_MIGHT_CONFLICT_WITH_PARENT_P(A) \
471 ((A)->might_conflict_with_parent_p)
472#if NUM_REGISTER_FILTERS
473#define ALLOCNO_REGISTER_FILTERS(A) (A)->register_filters
474#define ALLOCNO_SET_REGISTER_FILTERS(A, X) ((A)->register_filters = (X))
476#define ALLOCNO_REGISTER_FILTERS(A) 0
477#define ALLOCNO_SET_REGISTER_FILTERS(A, X) ((void) (A), gcc_assert ((X) == 0))
479#define ALLOCNO_DEPENDENT_FILTERS(A) ((A)->dependent_filters)
480#define ALLOCNO_HARD_REGNO(A) ((A)->hard_regno)
481#define ALLOCNO_CALL_FREQ(A) ((A)->call_freq)
482#define ALLOCNO_CALLS_CROSSED_NUM(A) ((A)->calls_crossed_num)
483#define ALLOCNO_CHEAP_CALLS_CROSSED_NUM(A) ((A)->cheap_calls_crossed_num)
484#define ALLOCNO_CROSSED_CALLS_ABIS(A) ((A)->crossed_calls_abis)
485#define ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS(A) \
486 ((A)->crossed_calls_clobbered_regs)
487#define ALLOCNO_MEM_OPTIMIZED_DEST(A) ((A)->mem_optimized_dest)
488#define ALLOCNO_MEM_OPTIMIZED_DEST_P(A) ((A)->mem_optimized_dest_p)
489#define ALLOCNO_SOMEWHERE_RENAMED_P(A) ((A)->somewhere_renamed_p)
490#define ALLOCNO_CHILD_RENAMED_P(A) ((A)->child_renamed_p)
491#define ALLOCNO_DONT_REASSIGN_P(A) ((A)->dont_reassign_p)
493#define ALLOCNO_NO_STACK_REG_P(A) ((A)->no_stack_reg_p)
494#define ALLOCNO_TOTAL_NO_STACK_REG_P(A) ((A)->total_no_stack_reg_p)
496#define ALLOCNO_BAD_SPILL_P(A) ((A)->bad_spill_p)
497#define ALLOCNO_ASSIGNED_P(A) ((A)->assigned_p)
498#define ALLOCNO_MODE(A) ((A)->mode)
499#define ALLOCNO_WMODE(A) ((A)->wmode)
500#define ALLOCNO_PREFS(A) ((A)->allocno_prefs)
501#define ALLOCNO_COPIES(A) ((A)->allocno_copies)
502#define ALLOCNO_HARD_REG_COSTS(A) ((A)->hard_reg_costs)
503#define ALLOCNO_UPDATED_HARD_REG_COSTS(A) ((A)->updated_hard_reg_costs)
504#define ALLOCNO_CONFLICT_HARD_REG_COSTS(A) \
505 ((A)->conflict_hard_reg_costs)
506#define ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS(A) \
507 ((A)->updated_conflict_hard_reg_costs)
508#define ALLOCNO_CLASS(A) ((A)->aclass)
509#define ALLOCNO_CLASS_COST(A) ((A)->class_cost)
510#define ALLOCNO_UPDATED_CLASS_COST(A) ((A)->updated_class_cost)
511#define ALLOCNO_MEMORY_COST(A) ((A)->memory_cost)
512#define ALLOCNO_UPDATED_MEMORY_COST(A) ((A)->updated_memory_cost)
513#define ALLOCNO_EXCESS_PRESSURE_POINTS_NUM(A) \
514 ((A)->excess_pressure_points_num)
515#define ALLOCNO_OBJECT(A,N) ((A)->objects[N])
516#define ALLOCNO_NUM_OBJECTS(A) ((A)->num_objects)
517#define ALLOCNO_ADD_DATA(A) ((A)->add_data)
546#define ALLOCNO_EMIT_DATA(a) ((ira_emit_data_t) ALLOCNO_ADD_DATA (a))
558#define OBJECT_ALLOCNO(O) ((O)->allocno)
559#define OBJECT_SUBWORD(O) ((O)->subword)
560#define OBJECT_CONFLICT_ARRAY(O) ((O)->conflicts_array)
561#define OBJECT_CONFLICT_VEC(O) ((ira_object_t *)(O)->conflicts_array)
562#define OBJECT_CONFLICT_BITVEC(O) ((IRA_INT_TYPE *)(O)->conflicts_array)
563#define OBJECT_CONFLICT_ARRAY_SIZE(O) ((O)->conflicts_array_size)
564#define OBJECT_CONFLICT_VEC_P(O) ((O)->conflict_vec_p)
565#define OBJECT_NUM_CONFLICTS(O) ((O)->num_accumulated_conflicts)
566#define OBJECT_CONFLICT_HARD_REGS(O) ((O)->conflict_hard_regs)
567#define OBJECT_TOTAL_CONFLICT_HARD_REGS(O) ((O)->total_conflict_hard_regs)
568#define OBJECT_MIN(O) ((O)->min)
569#define OBJECT_MAX(O) ((O)->max)
570#define OBJECT_CONFLICT_ID(O) ((O)->id)
571#define OBJECT_LIVE_RANGES(O) ((O)->live_ranges)
697#define IRA_INT_BITS HOST_BITS_PER_WIDE_INT
698#define IRA_INT_TYPE HOST_WIDE_INT
703#if defined ENABLE_IRA_CHECKING && (GCC_VERSION >= 2007)
705#define SET_MINMAX_SET_BIT(R, I, MIN, MAX) __extension__ \
706 (({ int _min = (MIN), _max = (MAX), _i = (I); \
707 if (_i < _min || _i > _max) \
710 "\n%s: %d: error in %s: %d not in range [%d,%d]\n", \
711 __FILE__, __LINE__, __FUNCTION__, _i, _min, _max); \
712 gcc_unreachable (); \
714 ((R)[(unsigned) (_i - _min) / IRA_INT_BITS] \
715 |= ((IRA_INT_TYPE) 1 << ((unsigned) (_i - _min) % IRA_INT_BITS))); }))
718#define CLEAR_MINMAX_SET_BIT(R, I, MIN, MAX) __extension__ \
719 (({ int _min = (MIN), _max = (MAX), _i = (I); \
720 if (_i < _min || _i > _max) \
723 "\n%s: %d: error in %s: %d not in range [%d,%d]\n", \
724 __FILE__, __LINE__, __FUNCTION__, _i, _min, _max); \
725 gcc_unreachable (); \
727 ((R)[(unsigned) (_i - _min) / IRA_INT_BITS] \
728 &= ~((IRA_INT_TYPE) 1 << ((unsigned) (_i - _min) % IRA_INT_BITS))); }))
730#define TEST_MINMAX_SET_BIT(R, I, MIN, MAX) __extension__ \
731 (({ int _min = (MIN), _max = (MAX), _i = (I); \
732 if (_i < _min || _i > _max) \
735 "\n%s: %d: error in %s: %d not in range [%d,%d]\n", \
736 __FILE__, __LINE__, __FUNCTION__, _i, _min, _max); \
737 gcc_unreachable (); \
739 ((R)[(unsigned) (_i - _min) / IRA_INT_BITS] \
740 & ((IRA_INT_TYPE) 1 << ((unsigned) (_i - _min) % IRA_INT_BITS))); }))
744#define SET_MINMAX_SET_BIT(R, I, MIN, MAX) \
745 ((R)[(unsigned) ((I) - (MIN)) / IRA_INT_BITS] \
746 |= ((IRA_INT_TYPE) 1 << ((unsigned) ((I) - (MIN)) % IRA_INT_BITS)))
748#define CLEAR_MINMAX_SET_BIT(R, I, MIN, MAX) \
749 ((R)[(unsigned) ((I) - (MIN)) / IRA_INT_BITS] \
750 &= ~((IRA_INT_TYPE) 1 << ((unsigned) ((I) - (MIN)) % IRA_INT_BITS)))
752#define TEST_MINMAX_SET_BIT(R, I, MIN, MAX) \
753 ((R)[(unsigned) ((I) - (MIN)) / IRA_INT_BITS] \
754 & ((IRA_INT_TYPE) 1 << ((unsigned) ((I) - (MIN)) % IRA_INT_BITS)))
788 i->nel = max < min ? 0 : max - min + 1;
791 i->word =
i->nel == 0 ? 0 :
vec[0];
801 for (;
i->word == 0;
i->word =
i->vec[
i->word_num])
807 if (
i->bit_num >=
i->nel)
816 *n = (int)
i->bit_num +
i->start_val;
833#define FOR_EACH_BIT_IN_MINMAX_SET(VEC, MIN, MAX, N, ITER) \
834 for (minmax_set_iter_init (&(ITER), (VEC), (MIN), (MAX)); \
835 minmax_set_iter_cond (&(ITER), &(N)); \
836 minmax_set_iter_next (&(ITER)))
867 [FIRST_PSEUDO_REGISTER][NUM_MACHINE_MODES]);
979#define this_target_ira_int (&default_target_ira_int)
982#define ira_reg_mode_hard_regset \
983 (this_target_ira_int->x_ira_reg_mode_hard_regset)
984#define ira_register_move_cost \
985 (this_target_ira_int->x_ira_register_move_cost)
986#define ira_max_memory_move_cost \
987 (this_target_ira_int->x_ira_max_memory_move_cost)
988#define ira_may_move_in_cost \
989 (this_target_ira_int->x_ira_may_move_in_cost)
990#define ira_may_move_out_cost \
991 (this_target_ira_int->x_ira_may_move_out_cost)
992#define ira_reg_allocno_class_p \
993 (this_target_ira_int->x_ira_reg_allocno_class_p)
994#define ira_reg_pressure_class_p \
995 (this_target_ira_int->x_ira_reg_pressure_class_p)
996#define ira_non_ordered_class_hard_regs \
997 (this_target_ira_int->x_ira_non_ordered_class_hard_regs)
998#define ira_class_hard_reg_index \
999 (this_target_ira_int->x_ira_class_hard_reg_index)
1000#define ira_useful_class_mode_regs \
1001 (this_target_ira_int->x_ira_useful_class_mode_regs)
1002#define ira_important_classes_num \
1003 (this_target_ira_int->x_ira_important_classes_num)
1004#define ira_important_classes \
1005 (this_target_ira_int->x_ira_important_classes)
1006#define ira_important_class_nums \
1007 (this_target_ira_int->x_ira_important_class_nums)
1008#define ira_uniform_class_p \
1009 (this_target_ira_int->x_ira_uniform_class_p)
1010#define ira_reg_class_intersect \
1011 (this_target_ira_int->x_ira_reg_class_intersect)
1012#define ira_reg_class_super_classes \
1013 (this_target_ira_int->x_ira_reg_class_super_classes)
1014#define ira_reg_class_subunion \
1015 (this_target_ira_int->x_ira_reg_class_subunion)
1016#define ira_reg_class_superunion \
1017 (this_target_ira_int->x_ira_reg_class_superunion)
1018#define ira_prohibited_mode_move_regs \
1019 (this_target_ira_int->x_ira_prohibited_mode_move_regs)
1020#define ira_hard_regno_nrefs \
1021 (this_target_ira_int->x_ira_hard_regno_nrefs)
1117 unsigned int, machine_mode);
1196#define FOR_EACH_ALLOCNO(A, ITER) \
1197 for (ira_allocno_iter_init (&(ITER)); \
1198 ira_allocno_iter_cond (&(ITER), &(A));)
1233#define FOR_EACH_OBJECT(OBJ, ITER) \
1234 for (ira_object_iter_init (&(ITER)); \
1235 ira_object_iter_cond (&(ITER), &(OBJ));)
1269#define FOR_EACH_ALLOCNO_OBJECT(A, O, ITER) \
1270 for (ira_allocno_object_iter_init (&(ITER)); \
1271 ira_allocno_object_iter_cond (&(ITER), (A), &(O));)
1307#define FOR_EACH_PREF(P, ITER) \
1308 for (ira_pref_iter_init (&(ITER)); \
1309 ira_pref_iter_cond (&(ITER), &(P));)
1345#define FOR_EACH_COPY(C, ITER) \
1346 for (ira_copy_iter_init (&(ITER)); \
1347 ira_copy_iter_cond (&(ITER), &(C));)
1387 if (
i->conflict_vec_p)
1388 i->size =
i->bit_num =
i->base_conflict_id =
i->word = 0;
1412 if (
i->conflict_vec_p)
1421 unsigned int bit_num =
i->bit_num;
1441 i->bit_num = bit_num + 1;
1442 i->word = word >> 1;
1452#define FOR_EACH_OBJECT_CONFLICT(OBJ, CONF, ITER) \
1453 for (ira_object_conflict_iter_init (&(ITER), (OBJ)); \
1454 ira_object_conflict_iter_cond (&(ITER), &(CONF));)
1508 for (
i = 0;
i < len;
i++)
1523 memcpy (*
vec, src,
sizeof (
int) * len);
1539 memset (*
vec, 0,
sizeof (
int) * len);
1541 for (
i = 0;
i < len;
i++)
1542 (*
vec)[
i] += src[
i];
1560 memcpy (reg_costs, src,
sizeof (
int) * len);
1563 for (
i = 0;
i < len;
i++)
1658 bool exclude_old_reload =
true)
1749 return call_cost && call_cost >= spill_cost;
1754#define CONST_POOL_OK_P(MODE, X) \
1755 ((MODE) != VOIDmode \
1757 && GET_CODE (X) != HIGH \
1758 && GET_MODE_SIZE (MODE).is_constant () \
1759 && !targetm.cannot_force_const_mem (MODE, X))
reg_class m_class
Definition ira-int.h:1611
int move_between_loops_cost() const
Definition ira-int.h:1644
int spill_outside_loop_cost() const
Definition ira-int.h:1633
int spill_inside_loop_cost() const
Definition ira-int.h:1622
machine_mode m_mode
Definition ira-int.h:1610
int m_entry_freq
Definition ira-int.h:1614
int m_exit_freq
Definition ira-int.h:1614
ira_loop_border_costs(ira_allocno_t)
Definition ira-color.cc:2930
rtx mem
Definition ira-int.h:665
bitmap_head spilled_regs
Definition ira-int.h:663
poly_uint64 width
Definition ira-int.h:667
int x_ira_important_classes_num
Definition ira-int.h:921
struct costs * x_this_op_costs[MAX_RECOG_OPERANDS]
Definition ira-int.h:858
HARD_REG_SET x_ira_prohibited_mode_move_regs[NUM_MACHINE_MODES]
Definition ira-int.h:966
enum reg_class x_ira_reg_class_superunion[N_REG_CLASSES][N_REG_CLASSES]
Definition ira-int.h:956
enum reg_class x_ira_reg_class_intersect[N_REG_CLASSES][N_REG_CLASSES]
Definition ira-int.h:940
void free_register_move_costs()
Definition ira.cc:1669
enum reg_class x_ira_important_classes[N_REG_CLASSES]
Definition ira-int.h:925
move_table * x_ira_may_move_in_cost[MAX_MACHINE_MODE]
Definition ira-int.h:875
enum reg_class x_alloc_reg_class_subclasses[N_REG_CLASSES][N_REG_CLASSES]
Definition ira-int.h:961
size_t x_ira_hard_regno_nrefs[FIRST_PSEUDO_REGISTER]
Definition ira-int.h:972
bool x_ira_prohibited_mode_move_regs_initialized_p
Definition ira-int.h:969
HARD_REG_SET x_no_unit_alloc_regs
Definition ira-int.h:862
move_table * x_ira_register_move_cost[MAX_MACHINE_MODE]
Definition ira-int.h:871
struct costs * x_init_cost
Definition ira-int.h:851
int x_ira_important_class_nums[N_REG_CLASSES]
Definition ira-int.h:930
short int x_ira_max_memory_move_cost[MAX_MACHINE_MODE][N_REG_CLASSES][2]
Definition ira-int.h:886
enum reg_class x_ira_reg_class_super_classes[N_REG_CLASSES][N_REG_CLASSES]
Definition ira-int.h:946
move_table * x_ira_may_move_out_cost[MAX_MACHINE_MODE]
Definition ira-int.h:879
void free_ira_costs()
Definition ira-costs.cc:2575
HARD_REG_SET(x_ira_reg_mode_hard_regset[FIRST_PSEUDO_REGISTER][NUM_MACHINE_MODES])
bool x_ira_reg_pressure_class_p[N_REG_CLASSES]
Definition ira-int.h:893
size_t x_max_struct_costs_size
Definition ira-int.h:847
short x_ira_class_hard_reg_index[N_REG_CLASSES][FIRST_PSEUDO_REGISTER]
Definition ira-int.h:904
bool x_ira_uniform_class_p[N_REG_CLASSES]
Definition ira-int.h:933
bool x_ira_reg_allocno_class_p[N_REG_CLASSES]
Definition ira-int.h:890
short x_ira_non_ordered_class_hard_regs[N_REG_CLASSES][FIRST_PSEUDO_REGISTER]
Definition ira-int.h:898
struct costs * x_temp_costs
Definition ira-int.h:854
int x_last_mode_for_init_move_cost
Definition ira-int.h:882
struct costs * x_op_costs[MAX_RECOG_OPERANDS]
Definition ira-int.h:857
HARD_REG_SET x_ira_useful_class_mode_regs[N_REG_CLASSES][NUM_MACHINE_MODES]
Definition ira-int.h:918
enum reg_class x_ira_reg_class_subunion[N_REG_CLASSES][N_REG_CLASSES]
Definition ira-int.h:955
bool debug
Definition collect-utils.cc:34
struct basic_block_def * basic_block
Definition coretypes.h:359
struct rtx_def * rtx
Definition coretypes.h:57
int reg_class_t
Definition coretypes.h:380
class bitmap_head * bitmap
Definition coretypes.h:51
@ IRA_REGION_MIXED
Definition flag-types.h:200
HARD_REG_SET call_clobbers_in_region(unsigned int abis, const_hard_reg_set mask, machine_mode mode)
Definition function-abi.cc:182
bool call_clobbered_in_region_p(unsigned int abis, const_hard_reg_set mask, machine_mode mode, unsigned int regno)
Definition function-abi.h:347
const size_t NUM_ABI_IDS
Definition function-abi.h:31
uint64_t alternative_mask
Definition genattrtab.cc:246
vec< const char * > register_filters
Definition gensupport.cc:408
#define TEST_HARD_REG_BIT(SET, BIT)
Definition hard-reg-set.h:170
HARD_REG_ELT_TYPE HARD_REG_SET
Definition hard-reg-set.h:47
const HARD_REG_SET const_hard_reg_set
Definition hard-reg-set.h:48
int ctz_hwi(unsigned HOST_WIDE_INT x)
Definition hwint.cc:93
bool ira_live_ranges_intersect_p(live_range_t r1, live_range_t r2)
Definition ira-build.cc:1082
void ira_free_allocno_updated_costs(ira_allocno_t a)
Definition ira-build.cc:1119
ira_copy_t ira_add_allocno_copy(ira_allocno_t first, ira_allocno_t second, int freq, bool constraint_p, rtx_insn *insn, ira_loop_tree_node_t loop_tree_node)
Definition ira-build.cc:1503
bool ira_conflict_vector_profitable_p(ira_object_t obj, int num)
Definition ira-build.cc:641
void ira_finish_live_range(live_range_t r)
Definition ira-build.cc:1099
void ira_debug_pref(ira_pref_t pref)
Definition ira-build.cc:1286
void ior_hard_reg_conflicts(ira_allocno_t a, const_hard_reg_set set)
Definition ira-build.cc:626
ira_loop_tree_node_t ira_bb_nodes
Definition ira-build.cc:49
ira_pref_t * ira_prefs
Definition ira-build.cc:83
int ira_allocnos_num
Definition ira-build.cc:72
ira_copy_t * ira_copies
Definition ira-build.cc:91
live_range_t ira_copy_live_range_list(live_range_t r)
Definition ira-build.cc:988
void ira_debug_prefs(void)
Definition ira-build.cc:1304
void ira_allocate_object_conflicts(ira_object_t obj, int num)
Definition ira-build.cc:699
void ira_flattening(int max_regno_before_emit, int ira_max_point_before_emit)
Definition ira-build.cc:3321
ira_loop_tree_node_t ira_curr_loop_tree_node
Definition ira-build.cc:1785
void ira_remove_allocno_prefs(ira_allocno_t a)
Definition ira-build.cc:1361
bool ira_build(void)
Definition ira-build.cc:3665
void ira_finish_live_range_list(live_range_t r)
Definition ira-build.cc:1106
bool ira_flatten_cost_p
Definition ira-build.cc:60
void ira_free_cost_vector(int *vec, reg_class_t aclass)
Definition ira-build.cc:1675
void ira_add_live_range_to_object(ira_object_t object, int start, int finish)
Definition ira-build.cc:966
ira_allocno_t * ira_curr_regno_allocno_map
Definition ira-build.cc:1786
live_range_t ira_merge_live_ranges(live_range_t r1, live_range_t r2)
Definition ira-build.cc:1010
void ira_destroy(void)
Definition ira-build.cc:3762
ira_object_t * ira_object_id_map
Definition ira-build.cc:79
ira_pref_t ira_create_pref(ira_allocno_t a, int hard_regno, int freq)
Definition ira-build.cc:1231
live_range_t ira_create_live_range(ira_object_t obj, int start, int finish, live_range_t next)
Definition ira-build.cc:950
ira_loop_tree_node_t ira_loop_nodes
Definition ira-build.cc:53
ira_allocno_t ira_parent_or_cap_allocno(ira_allocno_t a)
Definition ira-build.cc:3251
int * ira_allocate_cost_vector(reg_class_t aclass)
Definition ira-build.cc:1668
ira_allocno_t * ira_allocnos
Definition ira-build.cc:69
int ira_loop_tree_height
Definition ira-build.cc:44
ira_allocno_t ira_parent_allocno(ira_allocno_t a)
Definition ira-build.cc:3234
ira_copy_t ira_create_copy(ira_allocno_t first, ira_allocno_t second, int freq, bool constraint_p, rtx_insn *insn, ira_loop_tree_node_t loop_tree_node)
Definition ira-build.cc:1437
ira_allocno_t ira_create_allocno(int regno, bool cap_p, ira_loop_tree_node_t loop_tree_node)
Definition ira-build.cc:484
void ira_debug_copy(ira_copy_t cp)
Definition ira-build.cc:1550
void ira_add_allocno_pref(ira_allocno_t a, int hard_regno, int freq)
Definition ira-build.cc:1259
void ira_print_expanded_allocno(ira_allocno_t a)
Definition ira-build.cc:869
void ira_set_allocno_class(ira_allocno_t a, enum reg_class aclass)
Definition ira-build.cc:551
void ira_allocate_conflict_vec(ira_object_t obj, int num)
Definition ira-build.cc:665
void ira_remove_pref(ira_pref_t pref)
Definition ira-build.cc:1339
ira_allocno_t * ira_regno_allocno_map
Definition ira-build.cc:64
int ira_copies_num
Definition ira-build.cc:94
int ira_objects_num
Definition ira-build.cc:76
ira_loop_tree_node_t ira_loop_tree_root
Definition ira-build.cc:41
void ira_create_allocno_objects(ira_allocno_t a)
Definition ira-build.cc:567
void ira_debug_allocno_copies(ira_allocno_t a)
Definition ira-build.cc:1619
int ira_prefs_num
Definition ira-build.cc:86
void ira_debug_allocno_prefs(ira_allocno_t a)
Definition ira-build.cc:1323
void ira_traverse_loop_tree(bool bb_p, ira_loop_tree_node_t loop_node, void(*preorder_func)(ira_loop_tree_node_t), void(*postorder_func)(ira_loop_tree_node_t))
Definition ira-build.cc:1804
void ira_debug_copies(void)
Definition ira-build.cc:1568
int ira_loop_edge_freq(ira_loop_tree_node_t loop_node, int regno, bool exit_p)
Definition ira-color.cc:2897
ira_allocno_t ira_soft_conflict(ira_allocno_t a1, ira_allocno_t a2)
Definition ira-color.cc:1882
void ira_color(void)
Definition ira-color.cc:5425
void ira_finish_assign(void)
Definition ira-color.cc:5285
void ira_reassign_conflict_allocnos(int start_regno)
Definition ira-color.cc:4124
void ira_initiate_assign(void)
Definition ira-color.cc:5271
void ira_debug_hard_regs_forest(void)
Definition ira-color.cc:594
void ira_debug_conflicts(bool reg_p)
Definition ira-conflicts.cc:850
void ira_build_conflicts(void)
Definition ira-conflicts.cc:860
void ira_init_costs(void)
Definition ira-costs.cc:2594
void ira_init_costs_once(void)
Definition ira-costs.cc:2560
void ira_costs(void)
Definition ira-costs.cc:2648
void ira_tune_allocno_costs(void)
Definition ira-costs.cc:2694
void ira_finish_emit_data(void)
Definition ira-emit.cc:119
ira_emit_data_t ira_allocno_emit_data
Definition ira-emit.cc:89
rtx ira_create_new_reg(rtx original_reg)
Definition ira-emit.cc:336
void ira_initiate_emit_data(void)
Definition ira-emit.cc:101
void ira_emit(bool loops_p)
Definition ira-emit.cc:1243
void ira_init_register_move_cost_if_necessary(machine_mode mode)
Definition ira-int.h:1155
#define ira_register_move_cost
Definition ira-int.h:984
void ira_object_conflict_iter_init(ira_object_conflict_iterator *i, ira_object_t obj)
Definition ira-int.h:1381
unsigned short move_table[N_REG_CLASSES]
Definition ira-int.h:71
int64_t ira_shuffle_cost
Definition ira-int.h:683
bool ira_object_iter_cond(ira_object_iterator *i, ira_object_t *obj)
Definition ira-int.h:1216
bool ira_allocno_iter_cond(ira_allocno_iterator *i, ira_allocno_t *a)
Definition ira-int.h:1179
int ira_spilled_reg_stack_slots_num
Definition ira.cc:410
bool ira_hard_reg_set_intersection_p(int hard_regno, machine_mode mode, HARD_REG_SET hard_regset)
Definition ira-int.h:1462
bool ira_single_region_allocno_p(ira_allocno_t a, ira_allocno_t subloop_a)
Definition ira-int.h:1688
#define OBJECT_MAX(O)
Definition ira-int.h:569
void ira_allocate_and_copy_costs(int **vec, enum reg_class aclass, int *src)
Definition ira-int.h:1515
#define OBJECT_CONFLICT_ARRAY(O)
Definition ira-int.h:560
int64_t ira_overall_cost
Definition ira.cc:421
#define IRA_INT_TYPE
Definition ira-int.h:698
rtx allocno_emit_reg(ira_allocno_t a)
Definition ira-int.h:553
bitmap ira_allocate_bitmap(void)
Definition ira.cc:685
#define OBJECT_MIN(O)
Definition ira-int.h:568
#define ALLOCNO_MODE(A)
Definition ira-int.h:498
HARD_REG_SET ira_need_caller_save_regs(ira_allocno_t a)
Definition ira-int.h:1575
#define ALLOCNO_CALL_FREQ(A)
Definition ira-int.h:481
#define IRA_INT_BITS
Definition ira-int.h:697
int ira_caller_save_cost(ira_allocno_t a)
Definition ira-int.h:1716
void ira_free_bitmap(bitmap)
Definition ira.cc:692
void ira_free(void *addr)
Definition ira.cc:673
int64_t ira_store_cost
Definition ira-int.h:683
void ira_debug_live_ranges(void)
Definition ira-lives.cc:1952
void ira_copy_iter_init(ira_copy_iterator *i)
Definition ira-int.h:1320
void ira_rebuild_start_finish_chains(void)
Definition ira-lives.cc:1801
#define ALLOCNO_OBJECT(A, N)
Definition ira-int.h:515
void ira_allocate_and_set_or_copy_costs(int **vec, enum reg_class aclass, int val, int *src)
Definition ira-int.h:1549
void * ira_allocate(size_t)
Definition ira.cc:659
live_range_t * ira_finish_point_ranges
Definition ira-int.h:233
bool ira_subloop_allocnos_can_differ_p(ira_allocno_t a, bool allocated_p=true, bool exclude_old_reload=true)
Definition ira-int.h:1657
void ira_print_disposition(FILE *)
Definition ira.cc:702
#define ALLOCNO_CROSSED_CALLS_ABIS(A)
Definition ira-int.h:484
int ira_max_point
Definition ira-lives.cc:51
void ira_create_allocno_live_ranges(void)
Definition ira-lives.cc:1961
#define ALLOCNO_EMIT_DATA(a)
Definition ira-int.h:546
struct ira_allocno_pref * ira_pref_t
Definition ira-int.h:62
live_range_t * ira_start_point_ranges
Definition ira-lives.cc:55
void ira_allocno_object_iter_init(ira_allocno_object_iterator *i)
Definition ira-int.h:1245
int ira_move_loops_num
Definition ira.cc:424
void ira_compress_allocno_live_ranges(void)
Definition ira-lives.cc:1984
#define ALLOCNO_NUM_OBJECTS(A)
Definition ira-int.h:516
FILE * ira_dump_file
Definition ira.cc:407
struct ira_object * ira_object_t
Definition ira-int.h:64
bool ira_hard_reg_in_set_p(int hard_regno, machine_mode mode, HARD_REG_SET hard_regset)
Definition ira-int.h:1478
void ira_allocate_and_set_costs(int **vec, reg_class_t aclass, int val)
Definition ira-int.h:1499
struct ira_emit_data * ira_emit_data_t
Definition ira-int.h:520
struct ira_loop_tree_node * ira_loop_tree_node_t
Definition ira-int.h:69
void ira_init_register_move_cost(machine_mode)
Definition ira.cc:1548
void ira_finish_allocno_live_ranges(void)
Definition ira-lives.cc:1997
bool ira_allocno_object_iter_cond(ira_allocno_object_iterator *i, ira_allocno_t a, ira_object_t *o)
Definition ira-int.h:1254
void ira_debug_live_range_list(live_range_t)
Definition ira-lives.cc:1903
int ira_additional_jumps_num
Definition ira-int.h:684
#define ALLOCNO_CLASS(A)
Definition ira-int.h:508
void ira_implicitly_set_insn_hard_regs(HARD_REG_SET *, alternative_mask)
Definition ira-lives.cc:941
void ira_debug_allocno_classes(void)
Definition ira.cc:1403
int first_moveable_pseudo
Definition ira.cc:4764
class target_ira_int default_target_ira_int
Definition ira.cc:397
#define OBJECT_CONFLICT_VEC_P(O)
Definition ira-int.h:564
void ira_debug_disposition(void)
Definition ira.cc:734
void ira_add_dependent_filter(ira_allocno_t, int, machine_mode, ira_allocno_t, unsigned int, machine_mode)
Definition ira-lives.cc:1157
#define ALLOCNO_REGNO(A)
Definition ira-int.h:462
#define ALLOCNO_MIGHT_CONFLICT_WITH_PARENT_P(A)
Definition ira-int.h:470
bool ira_caller_save_loop_spill_p(ira_allocno_t a, ira_allocno_t subloop_a, int spill_cost)
Definition ira-int.h:1740
int internal_flag_ira_verbose
Definition ira.cc:404
#define ALLOCNO_CALLS_CROSSED_NUM(A)
Definition ira-int.h:482
bool minmax_set_iter_cond(minmax_set_iterator *i, int *n)
Definition ira-int.h:798
int ira_get_dup_out_num(int, alternative_mask, bool &)
Definition ira.cc:1950
int64_t ira_mem_cost
Definition ira-int.h:682
struct ira_allocno_copy * ira_copy_t
Definition ira-int.h:63
bool ira_pref_iter_cond(ira_pref_iterator *i, ira_pref_t *pref)
Definition ira-int.h:1290
bool ira_need_caller_save_p(ira_allocno_t a, unsigned int regno)
Definition ira-int.h:1586
int64_t ira_reg_cost
Definition ira.cc:422
#define this_target_ira_int
Definition ira-int.h:979
#define ALLOCNO_LOOP_TREE_NODE(A)
Definition ira-int.h:465
class ira_spilled_reg_stack_slot * ira_spilled_reg_stack_slots
Definition ira.cc:414
void ira_debug_allocno_live_ranges(ira_allocno_t)
Definition ira-lives.cc:1934
void ira_print_live_range_list(FILE *, live_range_t)
Definition ira-lives.cc:1879
int64_t ira_load_cost
Definition ira.cc:423
void minmax_set_iter_next(minmax_set_iterator *i)
Definition ira-int.h:823
int last_moveable_pseudo
Definition ira-int.h:1569
bool ira_copy_iter_cond(ira_copy_iterator *i, ira_copy_t *cp)
Definition ira-int.h:1328
#define OBJECT_TOTAL_CONFLICT_HARD_REGS(O)
Definition ira-int.h:567
void ira_allocate_and_accumulate_costs(int **vec, enum reg_class aclass, int *src)
Definition ira-int.h:1529
bool ira_object_conflict_iter_cond(ira_object_conflict_iterator *i, ira_object_t *pobj)
Definition ira-int.h:1407
void ira_object_iter_init(ira_object_iterator *i)
Definition ira-int.h:1208
void ira_allocno_iter_init(ira_allocno_iterator *i)
Definition ira-int.h:1171
alternative_mask ira_setup_alts(rtx_insn *)
Definition ira.cc:1770
struct live_range * live_range_t
Definition ira-int.h:60
bool ira_equiv_no_lvalue_p(int regno)
Definition ira-int.h:1141
void ira_pref_iter_init(ira_pref_iterator *i)
Definition ira-int.h:1282
HARD_REG_SET ira_total_conflict_hard_regs(ira_allocno_t a)
Definition ira-int.h:1704
#define ira_assert(c)
Definition ira-int.h:39
void minmax_set_iter_init(minmax_set_iterator *i, IRA_INT_TYPE *vec, int min, int max)
Definition ira-int.h:783
struct ira_allocno * ira_allocno_t
Definition ira-int.h:61
#define ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS(A)
Definition ira-int.h:485
bool ira_use_lra_p
Definition ira.cc:5634
int ira_reg_equiv_len
Definition ira.cc:3059
struct ira_reg_equiv_s * ira_reg_equiv
Definition ira.cc:3062
#define ira_pressure_class_translate
Definition ira.h:146
#define ira_class_hard_regs_num
Definition ira.h:158
#define ira_reg_class_max_nregs
Definition ira.h:150
#define ira_memory_move_cost
Definition ira.h:154
#define MACHINE_MODE_BITSIZE
Definition machmode.h:258
poly_int< NUM_POLY_INT_COEFFS, unsigned HOST_WIDE_INT > poly_uint64
Definition poly-int-types.h:25
i
Definition poly-int.h:776
Ca & a
Definition poly-int.h:770
ALWAYS_INLINE unsigned char hard_regno_nregs(unsigned int regno, machine_mode mode)
Definition regs.h:261
#define REGNO(RTX)
Definition rtl.h:1984
#define pic_offset_table_rtx
Definition rtl.h:4087
#define NULL_RTX
Definition rtl.h:718
#define MEM_READONLY_P(RTX)
Definition rtl.h:2702
Definition ira-costs.cc:54
Definition loop-invariant.cc:101
ira_allocno_t first
Definition ira-int.h:629
int freq
Definition ira-int.h:631
ira_loop_tree_node_t loop_tree_node
Definition ira-int.h:646
ira_allocno_t second
Definition ira-int.h:629
int num
Definition ira-int.h:626
rtx_insn * insn
Definition ira-int.h:638
ira_copy_t next_second_allocno_copy
Definition ira-int.h:644
ira_copy_t next_first_allocno_copy
Definition ira-int.h:641
ira_copy_t prev_first_allocno_copy
Definition ira-int.h:641
ira_copy_t prev_second_allocno_copy
Definition ira-int.h:644
bool constraint_p
Definition ira-int.h:632
Definition ira-int.h:1164
int n
Definition ira-int.h:1166
Definition ira-int.h:1238
int n
Definition ira-int.h:1240
ira_allocno_t allocno
Definition ira-int.h:605
ira_pref_t next_pref
Definition ira-int.h:608
int freq
Definition ira-int.h:603
int num
Definition ira-int.h:598
int hard_regno
Definition ira-int.h:600
unsigned int crossed_calls_abis
Definition ira-int.h:328
enum reg_class aclass
Definition ira-int.h:318
int class_cost
Definition ira-int.h:378
ira_copy_t allocno_copies
Definition ira-int.h:417
int num_objects
Definition ira-int.h:394
int freq
Definition ira-int.h:375
int regno
Definition ira-int.h:309
unsigned int bad_spill_p
Definition ira-int.h:343
int nrefs
Definition ira-int.h:373
ira_loop_tree_node_t loop_tree_node
Definition ira-int.h:411
unsigned int assigned_p
Definition ira-int.h:346
machine_mode wmode
Definition ira-int.h:315
ira_allocno_t next_regno_allocno
Definition ira-int.h:406
unsigned int dont_reassign_p
Definition ira-int.h:333
ira_pref_t allocno_prefs
Definition ira-int.h:413
struct ira_dependent_filter * dependent_filters
Definition ira-int.h:367
int * hard_reg_costs
Definition ira-int.h:445
ira_allocno_t cap
Definition ira-int.h:420
HARD_REG_SET crossed_calls_clobbered_regs
Definition ira-int.h:430
unsigned int conflict_vec_p
Definition ira-int.h:351
void * add_data
Definition ira-int.h:455
int * updated_hard_reg_costs
Definition ira-int.h:445
int num
Definition ira-int.h:307
int cheap_calls_crossed_num
Definition ira-int.h:402
int updated_memory_cost
Definition ira-int.h:386
int updated_class_cost
Definition ira-int.h:378
int call_freq
Definition ira-int.h:397
int * conflict_hard_reg_costs
Definition ira-int.h:452
ira_object_t objects[2]
Definition ira-int.h:428
unsigned int might_conflict_with_parent_p
Definition ira-int.h:358
int * updated_conflict_hard_reg_costs
Definition ira-int.h:452
ira_allocno_t cap_member
Definition ira-int.h:423
int excess_pressure_points_num
Definition ira-int.h:392
machine_mode mode
Definition ira-int.h:312
int memory_cost
Definition ira-int.h:386
int calls_crossed_num
Definition ira-int.h:399
signed int hard_regno
Definition ira-int.h:325
Definition ira-int.h:1313
int n
Definition ira-int.h:1315
ira_allocno_t ref_allocno
Definition ira-int.h:288
int id
Definition ira-int.h:284
struct ira_dependent_filter * next
Definition ira-int.h:292
machine_mode ref_mode
Definition ira-int.h:290
machine_mode mode
Definition ira-int.h:285
unsigned int ref_hard_regno
Definition ira-int.h:289
unsigned int mem_optimized_dest_p
Definition ira-int.h:530
ira_allocno_t mem_optimized_dest
Definition ira-int.h:543
rtx reg
Definition ira-int.h:539
unsigned int somewhere_renamed_p
Definition ira-int.h:534
unsigned int child_renamed_p
Definition ira-int.h:537
ira_loop_tree_node_t next
Definition ira-int.h:89
ira_loop_tree_node_t subloop_next
Definition ira-int.h:89
bitmap local_copies
Definition ira-int.h:146
bool to_remove_p
Definition ira-int.h:107
int level
Definition ira-int.h:97
int call_crossing_pressure[N_REG_CLASSES]
Definition ira-int.h:132
ira_loop_tree_node_t subloops
Definition ira-int.h:92
bitmap border_allocnos
Definition ira-int.h:139
int loop_num
Definition ira-int.h:103
int reg_pressure[N_REG_CLASSES]
Definition ira-int.h:125
basic_block bb
Definition ira-int.h:84
class loop * loop
Definition ira-int.h:86
bool entered_from_non_parent_p
Definition ira-int.h:121
ira_loop_tree_node_t parent
Definition ira-int.h:94
bitmap all_allocnos
Definition ira-int.h:136
bitmap modified_regnos
Definition ira-int.h:143
ira_allocno_t * regno_allocno_map
Definition ira-int.h:116
ira_loop_tree_node_t children
Definition ira-int.h:92
Definition ira-int.h:1350
unsigned IRA_INT_TYPE word
Definition ira-int.h:1376
void * vec
Definition ira-int.h:1356
unsigned int word_num
Definition ira-int.h:1360
int base_conflict_id
Definition ira-int.h:1372
unsigned int size
Definition ira-int.h:1364
bool conflict_vec_p
Definition ira-int.h:1353
unsigned int bit_num
Definition ira-int.h:1368
Definition ira-int.h:1201
int n
Definition ira-int.h:1203
unsigned int conflict_vec_p
Definition ira-int.h:275
void * conflicts_array
Definition ira-int.h:244
int subword
Definition ira-int.h:253
int num_accumulated_conflicts
Definition ira-int.h:271
ira_allocno_t allocno
Definition ira-int.h:240
int id
Definition ira-int.h:258
int max
Definition ira-int.h:263
HARD_REG_SET total_conflict_hard_regs
Definition ira-int.h:268
live_range_t live_ranges
Definition ira-int.h:249
int min
Definition ira-int.h:263
HARD_REG_SET conflict_hard_regs
Definition ira-int.h:268
unsigned int conflicts_array_size
Definition ira-int.h:255
Definition ira-int.h:1275
int n
Definition ira-int.h:1277
ira_object_t object
Definition ira-int.h:212
int finish
Definition ira-int.h:214
int start
Definition ira-int.h:214
live_range_t next
Definition ira-int.h:217
live_range_t finish_next
Definition ira-int.h:219
live_range_t start_next
Definition ira-int.h:219
int start_val
Definition ira-int.h:774
unsigned int word_num
Definition ira-int.h:765
unsigned int bit_num
Definition ira-int.h:771
unsigned int nel
Definition ira-int.h:768
unsigned IRA_INT_TYPE word
Definition ira-int.h:777
IRA_INT_TYPE * vec
Definition ira-int.h:762
#define NULL
Definition system.h:55
#define gcc_assert(EXPR)
Definition system.h:758