Implement speculative call verifier
authorJan Hubicka <jh@suse.cz>
Sun, 19 Jan 2020 15:41:11 +0000 (16:41 +0100)
committerJan Hubicka <jh@suse.cz>
Sun, 19 Jan 2020 15:41:11 +0000 (16:41 +0100)
commitbf6fc129c0568da74270474a1cf0737120796893
treee1b5a92df1ad3673db683a4d03613cc3fd14d72b
parent118aa5e31ce479bb81a003199b4c6ca0d997c9a2
Implement speculative call verifier

this patch implements verifier and fixes one bug where speculative calls
produced by ipa-devirt ended up having num_speculative_call_targets = 0
instead of 1.

* cgraph.c (cgraph_edge::make_speculative): Increase number of
speculative targets.
(verify_speculative_call): New function
(cgraph_node::verify_node): Use it.
* ipa-profile.c (ipa_profile): Fix formating; do not set number of
speculations.
gcc/ChangeLog
gcc/cgraph.c
gcc/ipa-profile.c