* ipa-split.c (struct split_point): Add count.
commitbfb98797bddb1287bf0d168695b65c9946204da8
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Nov 2017 09:06:12 +0000 (14 09:06 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Nov 2017 09:06:12 +0000 (14 09:06 +0000)
tree3a6b8461491456a3149ce524eb1e518bda31b711
parentf1e4e020706d2761e2860b8bad1e5689b64c2211
* ipa-split.c (struct split_point): Add count.
(consider_split): Do not compute incoming frequency; compute incoming
count and store it to split_point.
(split_function): Set count of the call to split part correctly.

* testsuite/gcc.dg/tree-ssa/fnsplit-2.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254720 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-split.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/fnsplit-1.c
gcc/testsuite/gcc.dg/tree-ssa/fnsplit-2.c [new file with mode: 0644]