Fix tp_first_run update in split_function.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 8 Dec 2019 16:57:20 +0000 (17:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 8 Dec 2019 16:57:20 +0000 (16:57 +0000)
commitf514d0199a8ff8a0275f7b1081196f35807216e8
tree62ad09a1d0b93fe499a4d1c50c32e5ebbb57c8c6
parenta63574d7ed2b09a161ae9182936bd06cf5aef7b4
Fix tp_first_run update in split_function.

The value 0 in tp_first_run is special meaing that profile is unknown.  We
should not set it to 1.

* ipa-split.c (split_function): Preserve 0 tp_first_run.

From-SVN: r279091
gcc/ChangeLog
gcc/ipa-split.c