Hi,
this patch gives us shorter code in ipa_pta_execute, by using
make_copy_constraint.
Bootstrapped and reg-tested on x86_64.
Committed to trunk as trivial.
Thanks,
- Tom
Use make_copy_constraint in ipa_pta_execute
2015-10-30 Tom de Vries <t...@codesourcery.com>
* tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
---
gcc/tree-ssa-structalias.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 55608ef..f142ca0 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -7384,17 +7384,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);
}
}
--
1.9.1