ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 17 Nov 2014 22:04:36 +0000 (23:04 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 17 Nov 2014 22:04:36 +0000 (22:04 +0000)
commit231b4916bf2636a02ede685b996b2bfb7773d639
treea0d20c604d54f9af5b113f166f5c11a470e4b182
parenta19faae31ea866598ad4738a511ed81b01e3d58e
ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.

* ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
(ipa_get_indirect_edge_target): Add SPECULATIVE argument.
(devirtualization_time_bonus): Use it.
(ipcp_discover_new_direct_edges): Likewise.
* ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
* ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.

From-SVN: r217675
gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-inline-analysis.c
gcc/ipa-prop.h