This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Update ipa-cp to new time metrics
- From: Martin Jambor <mjambor at suse dot cz>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 May 2017 16:19:26 +0200
- Subject: Re: Update ipa-cp to new time metrics
- Authentication-results: sourceware.org; auth=none
- References: <20170502093327.GA58895@kam.mff.cuni.cz>
Hi,
On Tue, May 02, 2017 at 11:33:28AM +0200, Jan Hubicka wrote:
> Hi,
> this patch makes ipa-cp to use nonspecialized time as a base for decision about
> cloning. I wonder about the capping - we perhaps want to use sreals further in
> the code because time differences can be large (with profile feedback). But I
> guess this can be done incrementally - main point of the patch is to update
> interfaces from ipa-analysis.
>
> Bootstrapped/regtested x86_64-linux, OK?
Yes it is, thanks.
Martin
>
> Honza
>
> * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
> update use of estimate_ipcp_clone_size_and_time.
> (estimate_local_effects): Update use of
> estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
> * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
> * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
> Return nonspecialized time.