Hi,
this no-functional-changes patch inlines get_vi_for_tree into
intra_create_variable_infos.
It exposes the interaction with create_variable_info_for_1, and makes it
clear that we're using none of the constraint handling from
create_variable_info_for.
Bootstrapped and reg-tested on x86_64.
Committed as trivial.
Thanks,
- Tom
Inline get_vi_for_tree into intra_create_variable_infos
2015-10-24 Tom de Vries <t...@codesourcery.com>
* tree-ssa-structalias.c (intra_create_variable_infos): Inline
get_vi_for_tree call.
---
gcc/tree-ssa-structalias.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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
--
1.9.1