From: "H.J. Lu" <hjl.tools@gmail.com>
To: Jan Hubicka <hubicka@ucw.cz>
Cc: "Jack Howarth" <howarth.at.gcc@gmail.com>,
"GCC Patches" <gcc-patches@gcc.gnu.org>,
"Martin Liška" <mliska@suse.cz>,
"Jakub Jelinek" <jakub@redhat.com>
Subject: Re: ipa-icf::merge TLC
Date: Fri, 27 Feb 2015 13:48:00 -0000 [thread overview]
Message-ID: <CAMe9rOp=QHf9FtrditfQRsOms=O1Vk6QZ-TsdJAwZzda0KPzEQ@mail.gmail.com> (raw)
In-Reply-To: <20150227021047.GA20437@kam.mff.cuni.cz>
On Thu, Feb 26, 2015 at 6:10 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> this is the final version of patch I comitted. It has new fix to make_decl_local
> to set TREE_ADDRESSABLE becuase we leave the flag undefined for non-local decls.
> I also dropped Optimization from fmerge-all-constants, fmerge-constants
> those can not be done in function speicfic way, I made ipa_ref::address_matters_p
> to use fmerge-constants, added code to drop UNINLINABLE flag when function is turned
> into a wrapper, added check to require DECL_NO_INLINE_WARNING_P match
> and added code to set TREE_ADDRESSABLE when non-addressable and addressable vars are merged.
> I also disabled merging for DECL_CONSTANT_POOL because it does not work (symtab does not
> expect aliases here)
>
> Bootstrapped/regtested x86_64-linux, comitted.
>
> Honza
> * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
> Use address_matters_p.
> (redirect_all_callers, set_addressable): New functions.
> (sem_function::merge): Reorganize and fix merging issues.
> (sem_variable::merge): Likewise.
> (sem_variable::compare_sections): Remove.
> * common.opt (fmerge-all-constants, fmerge-constants): Remove
> Optimization flag.
> * symtab.c (symtab_node::resolve_alias): When alias has aliases,
> redirect them.
> (symtab_node::make_decl_local): Set ADDRESSABLE bit when
> decl is used.
> (address_matters_1): New function.
> (symtab_node::address_matters_p): New function.
> * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
> check for merged flag.
> * cgraph.h (address_matters_p): Declare.
> (symtab_node::address_taken_from_non_vtable_p): Remove.
> (symtab_node::address_can_be_compared_p): New method.
> (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
> * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
> Remove.
> (comdat_can_be_unshared_p_1) Use address_matters_p.
> (update_vtable_references): Fix formating.
> * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
> * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
> * cgraphclones.c: Preserve merged and icf_merged flags.
>
This caused:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65237
--
H.J.
next prev parent reply other threads:[~2015-02-27 13:35 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 9:03 Jan Hubicka
2015-02-25 13:10 ` Markus Trippelsdorf
2015-02-25 17:31 ` Jan Hubicka
2015-02-25 18:41 ` Martin Liška
2015-02-25 19:02 ` Markus Trippelsdorf
2015-02-26 16:46 ` Jack Howarth
2015-02-27 5:55 ` Jan Hubicka
2015-02-27 13:48 ` H.J. Lu [this message]
2015-02-27 18:04 ` Jan Hubicka
2015-02-27 18:39 ` Steve Ellcey
2015-02-27 18:56 ` Steve Ellcey
2015-02-27 20:00 ` Martin Liška
2015-02-27 21:16 ` Jan Hubicka
2015-03-01 16:47 ` Christophe Lyon
2015-03-02 19:01 ` Alex Velenko
2015-03-02 20:21 ` Jan Hubicka
2015-03-02 22:04 ` Christophe Lyon
2015-03-03 12:44 ` Alex Velenko
2015-03-03 15:06 ` Christophe Lyon
2015-03-03 20:01 ` Jan Hubicka
2015-03-04 9:11 ` Christophe Lyon
2015-02-28 16:38 ` James Greenhalgh
2015-02-28 18:15 ` Jan Hubicka
2015-03-04 9:38 ` James Greenhalgh
2015-03-06 16:09 ` [ARM testsuite obvious] Fixup atomic-comp-swap-release-acquire.c to not use ICF James Greenhalgh
2015-03-06 16:13 ` James Greenhalgh
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='CAMe9rOp=QHf9FtrditfQRsOms=O1Vk6QZ-TsdJAwZzda0KPzEQ@mail.gmail.com' \
--to=hjl.tools@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=howarth.at.gcc@gmail.com \
--cc=hubicka@ucw.cz \
--cc=jakub@redhat.com \
--cc=mliska@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).