re PR ipa/81360 (ice in estimate_edge_growth, at ipa-inline.h:86)
authorJan Hubicka <hubicka@ucw.cz>
Sun, 19 Nov 2017 19:58:12 +0000 (20:58 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 19 Nov 2017 19:58:12 +0000 (19:58 +0000)
commit8a4a6d2e844df54583cd8fac181586b10f63fe25
tree961bb7a9c49b2c36604f8e1ccca0e49691d5e4f1
parenta6b22eea5b059f9eab1a6b13e2bea86bc3077906
re PR ipa/81360 (ice in estimate_edge_growth, at ipa-inline.h:86)

PR ipa/81360
* ipa-inline.c (can_inline_edge_p): Also check that caller is optimized
* gcc.c-torture/compile/pr81360.c: New testcase.

From-SVN: r254937
gcc/ChangeLog
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr81360.c [new file with mode: 0644]