ipa-split.c (struct split_point): Add count.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 14 Nov 2017 09:06:12 +0000 (10:06 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 14 Nov 2017 09:06:12 +0000 (09:06 +0000)
commited10d09bcc8e7af47896f9ca1f5dbc5fd710929d
tree3a6b8461491456a3149ce524eb1e518bda31b711
parent9b24c104aeb9dcaa06c0fe1324b8d9ef1fc2d92a
ipa-split.c (struct split_point): Add count.

* 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.

From-SVN: r254720
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]