From: Tom de Vries Date: Mon, 26 Oct 2015 10:46:52 +0000 (+0000) Subject: Inline get_vi_for_tree into intra_create_variable_infos X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e541e62f3b49076aa72fcfa5e7f01f3b97e91fda;p=gcc.git Inline get_vi_for_tree into intra_create_variable_infos 2015-10-26 Tom de Vries * tree-ssa-structalias.c (intra_create_variable_infos): Inline get_vi_for_tree call. From-SVN: r229322 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c115b0da82c..9b9ddd71192 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-26 Tom de Vries + + * tree-ssa-structalias.c (intra_create_variable_infos): Inline + get_vi_for_tree call. + 2015-10-26 Kyrylo Tkachov PR middle-end/67989 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 66a04b2bd54..c5a7e2a3be5 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