[PR 66616] Check for thunks when adding extra constants to clones
authorMartin Jambor <mjambor@suse.cz>
Mon, 14 Dec 2015 09:33:12 +0000 (10:33 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 14 Dec 2015 09:33:12 +0000 (10:33 +0100)
commit173b7355f6858dac3b1ff0919b5ae8a87f379dea
treea80ba4c0b00626fa7d08d354c9bfd67cc9bb2036
parent63da5ff6bfbc86294a911c36be99e70b9fc0a83a
[PR 66616] Check for thunks when adding extra constants to clones

2015-12-14  Martin Jambor  <mjambor@suse.cz>

PR ipa/66616
* ipa-cp.c (propagate_constants_accross_call): Move thuk check...
(call_passes_through_thunk_p): ...here.
(find_more_scalar_values_for_callers_subset): Perform thunk checks
like propagate_constants_accross_call does.

testsuite/
* g++.dg/ipa/pr66616.C: New test.

From-SVN: r231607
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr66616.C [new file with mode: 0644]