state_t state_in_table;
state_t temp_state;
alt_state_t canonical_alt_states_list;
- int alts_number;
int new_state_p = 0;
if (arcs_marked_by_insn == NULL)
|| (curr_arc->insn->insn_reserv_decl
!= DECL_INSN_RESERV (advance_cycle_insn_decl)))
add_arc (state, curr_arc->to_state, curr_arc->insn);
- }
- arcs_marked_by_insn->to_state = state;
- for (alts_number = 0,
- curr_arc = arcs_marked_by_insn->next_arc_marked_by_insn;
- curr_arc != NULL;
- curr_arc = next_arc)
- {
- next_arc = curr_arc->next_arc_marked_by_insn;
- remove_arc (original_state, curr_arc);
- alts_number++;
- }
+ }
+ arcs_marked_by_insn->to_state = state;
+ for (curr_arc = arcs_marked_by_insn->next_arc_marked_by_insn;
+ curr_arc != NULL;
+ curr_arc = next_arc)
+ {
+ next_arc = curr_arc->next_arc_marked_by_insn;
+ remove_arc (original_state, curr_arc);
+ }
}
}
if (!state->it_was_placed_in_stack_for_DFA_forming)
void
print_pdrs (FILE *file, poly_bb_p pbb)
{
- int nb_reads = 0;
- int nb_writes = 0;
-
if (PBB_DRS (pbb).is_empty ())
return;
fprintf (file, "Data references (\n");
-
- for (poly_dr_p pdr : PBB_DRS (pbb))
- if (PDR_TYPE (pdr) == PDR_READ)
- nb_reads++;
- else
- nb_writes++;
-
fprintf (file, "Read data references (\n");
for (poly_dr_p pdr : PBB_DRS (pbb))
char **lto_argv, **ltoobj_argv;
bool linker_output_rel = false;
bool skip_debug = false;
- unsigned n_debugobj;
const char *incoming_dumppfx = dumppfx = NULL;
static char current_dir[] = { '.', DIR_SEPARATOR, '\0' };
/* Copy the early generated debug info from the objects to temporary
files and append those to the partial link commandline. */
- n_debugobj = 0;
early_debug_object_names = NULL;
if (! skip_debug)
{
{
const char *tem;
if ((tem = debug_objcopy (ltoobj_argv[i], !linker_output_rel)))
- {
- early_debug_object_names[i] = tem;
- n_debugobj++;
- }
+ early_debug_object_names[i] = tem;
}
}
if (np)
{
int i = 0;
- int ranges = 0;
case_tree_node **npp;
case_tree_node *left;
profile_probability prob = profile_probability::never ();
- /* Count the number of entries on branch. Also count the ranges. */
+ /* Count the number of entries on branch. */
while (np)
{
- if (!tree_int_cst_equal (np->m_c->get_low (), np->m_c->get_high ()))
- ranges++;
-
i++;
prob += np->m_c->m_prob;
np = np->m_right;
left = *npp;
profile_probability pivot_prob = prob.apply_scale (1, 2);
- /* Find the place in the list that bisects the list's total cost,
- where ranges count as 2. */
+ /* Find the place in the list that bisects the list's total cost
+ by probability. */
while (1)
{
/* Skip nodes while their probability does not reach