From: Tom de Vries Date: Wed, 28 Oct 2015 15:09:21 +0000 (+0000) Subject: Generate constraints only once in intra_create_variable_infos X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=054e08894a07aee745476772e87b5138b5b73ac1;p=gcc.git Generate constraints only once in intra_create_variable_infos 2015-10-28 Tom de Vries * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate into vi_next of a full_var. From-SVN: r229490 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 440d84354c7..273dca71e25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-28 Tom de Vries + + * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate + into vi_next of a full_var. + 2015-10-28 Tom de Vries * tree-ssa-structalias.c (new_var_info, make_heapvar) diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 711b5a0059d..90b020016a9 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -5925,6 +5925,8 @@ intra_create_variable_infos (struct function *fn) make_constraint_from_global_restrict (p, "PARM_RESTRICT", true); else if (p->may_have_pointers) make_constraint_from (p, nonlocal_id); + if (p->is_full_var) + break; } } }