aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-10-26 10:46:52 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-10-26 10:46:52 +0000
commite541e62f3b49076aa72fcfa5e7f01f3b97e91fda (patch)
tree259e57db8c16c611f9fb7516e0f89be7fb143037 /gcc/tree-ssa-structalias.c
parent77237288bdc644eed58d9e8bff1cad8c268a499d (diff)
downloadgcc-e541e62f3b49076aa72fcfa5e7f01f3b97e91fda.zip
gcc-e541e62f3b49076aa72fcfa5e7f01f3b97e91fda.tar.gz
gcc-e541e62f3b49076aa72fcfa5e7f01f3b97e91fda.tar.bz2
Inline get_vi_for_tree into intra_create_variable_infos
2015-10-26 Tom de Vries <tom@codesourcery.com> * tree-ssa-structalias.c (intra_create_variable_infos): Inline get_vi_for_tree call. From-SVN: r229322
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 66a04b2..c5a7e2a 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -5857,7 +5857,12 @@ intra_create_variable_infos (struct function *fn)
passed-by-reference argument. */
for (t = DECL_ARGUMENTS (fn->decl); t; t = DECL_CHAIN (t))
{
- varinfo_t p = get_vi_for_tree (t);
+ varinfo_t p = lookup_vi_for_tree (t);
+ if (p == NULL)
+ {
+ p = create_variable_info_for_1 (t, alias_get_name (t));
+ insert_vi_for_tree (t, p);
+ }
/* For restrict qualified pointers build a representative for
the pointed-to object. Note that this ends up handling