re PR ipa/63470 (internal compiler error: in estimate_edge_growth, at ipa-inline...
commitd8d5aef10080e5c96414ba48fa31e41e823a95f7
authorJan Hubicka <hubicka@ucw.cz>
Mon, 12 Jan 2015 09:24:18 +0000 (12 10:24 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 12 Jan 2015 09:24:18 +0000 (12 09:24 +0000)
tree993913a7158e643f48bf7e882b92891566a2049e
parent0d2dd460fe627cf460536b80b99f56682775fe78
re PR ipa/63470 (internal compiler error: in estimate_edge_growth, at ipa-inline.h:308)

PR ipa/63470
* ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
cost when edge becomes direct.
* ipa-prop.c (make_edge_direct): Do not adjust when speculation
is resolved or when introducing new speculation.
* testsuite/g++.dg/ipa/pr63470.C: New testcase.

From-SVN: r219451
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr63470.C [new file with mode: 0644]