ipa-inline-analysis.c (estimate_function_body_sizes): Allocate nonconstant_names after calculate_dominance_info and loop_optimizer_init.
2012-08-31 Martin Jambor <mjambor@suse.cz> * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate nonconstant_names after calculate_dominance_info and loop_optimizer_init. From-SVN: r190841
This commit is contained in:
parent
d409320ca8
commit
be279f8651
2 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-08-31 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
|
||||
nonconstant_names after calculate_dominance_info and
|
||||
loop_optimizer_init.
|
||||
|
||||
2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
|
||||
|
||||
* config/arm/arm.c (arm_expand_epilogue): Remove unused variable
|
||||
|
|
|
@ -2185,13 +2185,6 @@ estimate_function_body_sizes (struct cgraph_node *node, bool early)
|
|||
struct ipa_node_params *parms_info = NULL;
|
||||
VEC (predicate_t, heap) *nonconstant_names = NULL;
|
||||
|
||||
if (ipa_node_params_vector && !early && optimize)
|
||||
{
|
||||
parms_info = IPA_NODE_REF (node);
|
||||
VEC_safe_grow_cleared (predicate_t, heap, nonconstant_names,
|
||||
VEC_length (tree, SSANAMES (my_function)));
|
||||
}
|
||||
|
||||
info->conds = 0;
|
||||
info->entry = 0;
|
||||
|
||||
|
@ -2199,6 +2192,13 @@ estimate_function_body_sizes (struct cgraph_node *node, bool early)
|
|||
{
|
||||
calculate_dominance_info (CDI_DOMINATORS);
|
||||
loop_optimizer_init (LOOPS_NORMAL | LOOPS_HAVE_RECORDED_EXITS);
|
||||
|
||||
if (ipa_node_params_vector)
|
||||
{
|
||||
parms_info = IPA_NODE_REF (node);
|
||||
VEC_safe_grow_cleared (predicate_t, heap, nonconstant_names,
|
||||
VEC_length (tree, SSANAMES (my_function)));
|
||||
}
|
||||
}
|
||||
|
||||
if (dump_file)
|
||||
|
|
Loading…
Add table
Reference in a new issue