Avoid recursion in tree-inline
authorJan Hubicka <jh@suse.cz>
Tue, 3 Nov 2020 10:56:05 +0000 (11:56 +0100)
committerJan Hubicka <jh@suse.cz>
Tue, 3 Nov 2020 10:56:05 +0000 (11:56 +0100)
commitf89dcf93348b44b8ea2b57f940fcdaeae0f764f6
tree3b00309feae7c4adb59085605a0c9bb6289ded97
parent8414529156e0bca37647c440c71beeca1d04ac86
Avoid recursion in tree-inline

gcc/ChangeLog:

2020-11-03  Jan Hubicka  <hubicka@ucw.cz>

PR ipa/97578
* ipa-inline-transform.c (maybe_materialize_called_clones): New
function.
(inline_transform): Use it.

gcc/testsuite/ChangeLog:

2020-11-03  Jan Hubicka  <hubicka@ucw.cz>

* gcc.c-torture/compile/pr97578.c: New test.
gcc/ipa-inline-transform.c
gcc/testsuite/gcc.c-torture/compile/pr97578.c [new file with mode: 0644]