ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to do_clone_for_al...
authorMartin Jambor <mjambor@suse.cz>
Wed, 21 Nov 2012 17:13:48 +0000 (18:13 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 21 Nov 2012 17:13:48 +0000 (18:13 +0100)
commiteb20b7788fe0a9f43657668207677833e3881741
tree19097a42aba8e5dd844fbeecb52d7e94b245e809
parent7e9f2b6e35b47373730c340471afa1734e197b60
ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to do_clone_for_all_contexts.

2012-11-21  Martin Jambor  <mjambor@suse.cz>

* ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to
do_clone_for_all_contexts.  Update all uses.  New flag
is_all_contexts_clone.
* ipa-cp.c (cgraph_edge_brings_value_p): Also consider the case when cs
leads to the clone for all contexts.
(perhaps_add_new_callers): Likewise.
(decide_whether_version_node): Remove bogus !plats->aggs test.  Set
is_all_contexts_clone when cloning for all contexts.

* testsuite/gcc.dg/ipa/ipcp-agg-7.c: New test.
* testsuite/gcc.dg/ipa/ipcp-agg-8.c: Likewise.

From-SVN: r193701
gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-prop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipcp-agg-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipcp-agg-8.c [new file with mode: 0644]