From: Tom de Vries <Tom_deVries@mentor.com>
To: "gcc-patches@gnu.org" <gcc-patches@gnu.org>
Cc: Richard Biener <rguenther@suse.de>
Subject: [committed, trivial] Use make_copy_constraint in ipa_pta_execute
Date: Sat, 31 Oct 2015 08:16:00 -0000 [thread overview]
Message-ID: <56347843.6010502@mentor.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
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
[-- Attachment #2: 0001-Use-make_copy_constraint-in-ipa_pta_execute.patch --]
[-- Type: text/x-patch, Size: 1000 bytes --]
Use make_copy_constraint in ipa_pta_execute
2015-10-30 Tom de Vries <tom@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
reply other threads:[~2015-10-31 8:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56347843.6010502@mentor.com \
--to=tom_devries@mentor.com \
--cc=gcc-patches@gnu.org \
--cc=rguenther@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).