This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make ipa_read_jump_function use ipa_set_jf_* helpers
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <hubicka at ucw dot cz>
- Date: Sun, 24 Mar 2013 12:12:04 +0100
- Subject: Re: [PATCH] Make ipa_read_jump_function use ipa_set_jf_* helpers
- References: <20130324002420 dot GF16552 at virgil dot suse>
> Hi,
>
> the following patch makes ipa_read_jump_function use the helper
> functions to set up jump functions instead of doing it itself. The
> main reason is that I plan to add some less-trivial code to one of the
> helpers but setting the functions always in one place is a good idea
> anyway.
>
> Because there are two types of pass-through functions (NOP and
> arithmetic) with two helpers to set them up, we also stream the two in
> separate ways with the added benefit of streaming slightly less.
>
> Bootstrapped and tested on x86_64-linux where it also passes LTO
> bootstrap. OK for trunk?
>
> Thanks,
>
> Martin
>
>
> 2013-03-20 Martin Jambor <mjambor@suse.cz>
>
> * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
> pass-through jump functions differently.
> (ipa_read_jump_function): Likewise. Also use setter functions to set
> up jump functions.
OK,
thanks!
Honza