https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63814
--- Comment #28 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Tue Dec 2 10:12:27 2014 New Revision: 218265 URL: https://gcc.gnu.org/viewcvs?rev=218265&root=gcc&view=rev Log: 2014-12-02 Martin Jambor <mjam...@suse.cz> PR ipa/63814 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function. (cgraph_edge_brings_value_p): New parameter dest, use same_node_or_its_all_contexts_clone_p and check availability. (cgraph_edge_brings_value_p): Likewise. (get_info_about_necessary_edges): New parameter dest, pass it to cgraph_edge_brings_value_p. Update caller. (gather_edges_for_value): Likewise. (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check both the destination and availability. Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-cp.c