Inline get_vi_for_tree into intra_create_variable_infos
authorTom de Vries <tom@codesourcery.com>
Mon, 26 Oct 2015 10:46:52 +0000 (10:46 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 26 Oct 2015 10:46:52 +0000 (10:46 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index c115b0da82c88f2fd5f2013115e5b94266d8cddf..9b9ddd71192f40edf345d4458c209b09e566435a 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-26  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-ssa-structalias.c (intra_create_variable_infos): Inline
+       get_vi_for_tree call.
+
 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        PR middle-end/67989
index 66a04b2bd5400f5e6c8d7fa8cf15f5795dbf44ad..c5a7e2a3be562c41fa5aa0de5f1d7f8aa7ac5a07 100644 (file)
@@ -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