Fix remove_predictions_associated_with_edge
authorJan Hubicka <jh@suse.cz>
Mon, 10 Aug 2020 06:18:13 +0000 (08:18 +0200)
committerJan Hubicka <jh@suse.cz>
Mon, 10 Aug 2020 06:18:13 +0000 (08:18 +0200)
commit527bf3bc8db6b6a1c075b0579deea156a55d49b6
tree9a0ba41ad3e43ad9dc92ccab372e2edd1981445e
parent5fb34b41a7979c8445ad5a28614a440458fd4285
Fix remove_predictions_associated_with_edge

remove_predictions_associated_with_edge currently calls filter_predicitons
passing it equal_edge_p. Becase filter_predictions removes all edges where
filter returns false, the function does exact oposite. Fixed thus.

Bootstrapped/regtested x86_64-linux.

gcc/ChangeLog:

2020-08-02  Jan Hubicka  <hubicka@ucw.cz>

* predict.c (filter_predictions): Document semantics of filter.
(equal_edge_p): Rename to ...
(not_equal_edge_p): ... this; reverse semantics.
(remove_predictions_associated_with_edge): Fix.
gcc/predict.c