ipa-split-2.c: New testcase.
authorJan Hubicka <jh@suse.cz>
Sat, 26 Jun 2010 14:45:40 +0000 (16:45 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 26 Jun 2010 14:45:40 +0000 (14:45 +0000)
commit8b3057b30d78d0e30ec9f0db8806229bd8f28dfc
tree48fb4136d3d63a84f88676d81afbfd202920e87e
parent6bfd4302547d10962648eb1dddd4020cf8017ada
ipa-split-2.c: New testcase.

* gcc.dg/tree-ssa/ipa-split-2.c: New testcase.
* ipa-split.c (consider_split): PHI in entry block is OK as long as all
edges comming from header are equivalent.
(visit_bb): Handle PHIs correctly.
* tree-inline.c (copy_phis_for_bb): Be able to copy
PHI from entry edge.
(copy_cfg_body): Produce edge from entry BB before copying
PHIs.

From-SVN: r161433
gcc/ChangeLog
gcc/ipa-split.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ipa-split-2.c [new file with mode: 0644]
gcc/tree-inline.c