Use make_copy_constraint in ipa_pta_execute
authorTom de Vries <tom@codesourcery.com>
Sat, 31 Oct 2015 08:08:18 +0000 (08:08 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 31 Oct 2015 08:08:18 +0000 (08:08 +0000)
2015-10-31  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.

From-SVN: r229617

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

index a41ae5d55d2feaf61136b47d28693136eed1a9ba..7e725df0f966ca5a4b2b05a43805859d9032f2ea 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-31  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
+
 2015-10-30  Jeff Law <jeff@redhat.com>
            Nathan Sidwell  <nathan@acm.org>
 
index 6f157a142b205d83ecc4835a1dff5c4bbeaa3767..f482c72396c9990e7375cb3bf93fe970fdf9c6d3 100644 (file)
@@ -7371,17 +7371,7 @@ ipa_pta_execute (void)
              fi = lookup_vi_for_tree (node->decl);
              rvi = first_vi_for_offset (fi, fi_result);
              if (rvi && rvi->offset == fi_result)
-               {
-                 struct constraint_expr includes;
-                 struct constraint_expr var;
-                 includes.var = escaped_id;
-                 includes.offset = 0;
-                 includes.type = SCALAR;
-                 var.var = rvi->id;
-                 var.offset = 0;
-                 var.type = SCALAR;
-                 process_constraint (new_constraint (includes, var));
-               }
+               make_copy_constraint (get_varinfo (escaped_id), rvi->id);
            }
        }