From: Jan Hubicka <hubicka@ucw.cz>
To: Martin Jambor <mjambor@suse.cz>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 7/9] ipa-sra: Forward propagation of sizes which are safe to dereference
Date: Mon, 12 Dec 2022 22:54:34 +0100 [thread overview]
Message-ID: <Y5ejGlqDmsbpFzB8@kam.mff.cuni.cz> (raw)
In-Reply-To: <ri6y1rch8bw.fsf@suse.cz>
> gcc/ChangeLog:
>
> 2022-11-11 Martin Jambor <mjambor@suse.cz>
>
> * ipa-sra.cc (isra_param_desc): New fields safe_size,
> conditionally_dereferenceable and safe_size_set.
> (struct gensum_param_desc): New field conditionally_dereferenceable.
> (struct isra_param_flow): Updated comment of field unit_size.
> (ipa_sra_function_summaries::duplicate): Copy the new fields.
> (isra_call_summary::dump): Dump unit_size when representing safe_size.
> (dump_gensum_param_descriptor): Dump new flag.
> (dump_isra_param_descriptor): Dump new fields.
> (isra_analyze_call): Fill unit_size when it represents known safe
> size.
> (check_gensum_access): Instead of disqualifying pointers which are not
> always dereference, mark them as conditionally dereferencable if loads
> are frequent enough.
> (process_scan_results): Copy the conditionally_dereferenceable flag.
> (isra_write_node_summary): Stream new fields, or assert they are not
> initialized yet.
> (isra_read_node_info): Stream new fields.
> (update_safe_size): New function.
> (propagate_param_hints_accross_call): Propagate safe_sizes.
> (propagate_hints_to_all_callees): New function.
> (adjust_parameter_descriptions): Check conditionally_dereferenceable
> candidates, rework dumping.
> (ipa_sra_analysis): Move most of hint propagation for one node to
> propagate_hints_to_all_callees. Add another loop to stabilize within
> SCCs and another one to verify.
>
> gcc/testsuite/ChangeLog:
>
> 2022-11-11 Martin Jambor <mjambor@suse.cz>
>
> * gcc.dg/ipa/ipa-sra-26.c: New test.
> * gcc.dg/ipa/ipa-sra-27.c: Likewise.
> * gcc.dg/ipa/ipa-sra-28.c: Likewise.
OK,
thanks!
Honza
prev parent reply other threads:[~2022-12-12 21:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 16:53 Martin Jambor
2022-12-12 21:54 ` Jan Hubicka [this message]
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=Y5ejGlqDmsbpFzB8@kam.mff.cuni.cz \
--to=hubicka@ucw.cz \
--cc=gcc-patches@gcc.gnu.org \
--cc=mjambor@suse.cz \
/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).