From a543155b20f2a6efe7645c6c968d3ddf07d38faf Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 31 Oct 2015 08:08:18 +0000 Subject: [PATCH] Use make_copy_constraint in ipa_pta_execute 2015-10-31 Tom de Vries * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint. From-SVN: r229617 --- gcc/ChangeLog | 4 ++++ gcc/tree-ssa-structalias.c | 12 +----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a41ae5d55d2..7e725df0f96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-10-31 Tom de Vries + + * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint. + 2015-10-30 Jeff Law Nathan Sidwell diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 6f157a142b2..f482c72396c 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -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); } } -- 2.30.2