if (!loop->header->aux)
continue;
- profile_count phdr_count = loop_preheader_edge (loop)->count ();
- sreal phdr_freq = phdr_count.to_sreal_scale (entry_count);
+ profile_count hdr_count = loop->header->count;
+ sreal hdr_freq = hdr_count.to_sreal_scale (entry_count);
bb_predicate = *(ipa_predicate *)loop->header->aux;
auto_vec<edge> exits = get_loop_exit_edges (loop);
loop_iterations &= will_be_nonconstant;
}
add_freqcounting_predicate (&s->loop_iterations, loop_iterations,
- phdr_freq, max_loop_predicates);
+ hdr_freq, max_loop_predicates);
}
/* To avoid quadratic behavior we analyze stride predicates only
{
ipa_predicate loop_stride = true;
basic_block *body = get_loop_body (loop);
- profile_count phdr_count = loop_preheader_edge (loop)->count ();
- sreal phdr_freq = phdr_count.to_sreal_scale (entry_count);
+ profile_count hdr_count = loop->header->count;
+ sreal hdr_freq = hdr_count.to_sreal_scale (entry_count);
for (unsigned i = 0; i < loop->num_nodes; i++)
{
gimple_stmt_iterator gsi;
}
}
add_freqcounting_predicate (&s->loop_strides, loop_stride,
- phdr_freq, max_loop_predicates);
+ hdr_freq, max_loop_predicates);
free (body);
}
scev_finalize ();