Fix IPA-CP test for self-feeding recursive dependency
authorMartin Jambor <mjambor@suse.cz>
Fri, 20 Apr 2018 09:35:33 +0000 (11:35 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 20 Apr 2018 09:35:33 +0000 (11:35 +0200)
commit2f1f3ac43828d7c9b8899f23683bf6b88066fc4a
treeb810fdec9356b7c83e8fe2d49beed1c4170caaa1
parent5fc1b92025fa55f6de9f93bf02df424a17802e55
Fix IPA-CP test for self-feeding recursive dependency

2018-04-20  Martin Jambor  <mjambor@suse.cz>

ipa/85449
* ipa-cp.c (cgraph_edge_brings_value_p): Move check for self-feeding
recursion dependency to only apply to non-clones.

testsuite/
* gcc.dg/ipa/pr85449.c: New test.

From-SVN: r259518
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr85449.c [new file with mode: 0644]