Fix IPA-CP test for self-feeding recursive dependency
commitf901a13d5e953ca20fa7c76bc0f0150138b5bca7
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2018 09:35:33 +0000 (20 09:35 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2018 09:35:33 +0000 (20 09:35 +0000)
treeb810fdec9356b7c83e8fe2d49beed1c4170caaa1
parent3fa967020015d5ac3f6c0fe3113663be919e87a5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259518 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr85449.c [new file with mode: 0644]