aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-10-28 15:09:21 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-10-28 15:09:21 +0000
commit054e08894a07aee745476772e87b5138b5b73ac1 (patch)
treee3da6a835f9bd631dd4f1edb92e62898b6c6456f /gcc/tree-ssa-structalias.c
parent3781ab4b677b950454a473182579f8d25fc6d5e3 (diff)
downloadgcc-054e08894a07aee745476772e87b5138b5b73ac1.zip
gcc-054e08894a07aee745476772e87b5138b5b73ac1.tar.gz
gcc-054e08894a07aee745476772e87b5138b5b73ac1.tar.bz2
Generate constraints only once in intra_create_variable_infos
2015-10-28 Tom de Vries <tom@codesourcery.com> * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate into vi_next of a full_var. From-SVN: r229490
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 711b5a0..90b0200 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;
}
}
}