aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2020-10-07 14:12:49 +0200
committerMartin Jambor <mjambor@suse.cz>2020-10-07 14:12:49 +0200
commite089e43365f7f2a90979e2316aea25d44823f5a3 (patch)
tree5bfc4afe0739878724545014f51f7f8a9cf6bc88 /gcc/cp/decl.c
parent99e9b54313dbb8fdb3d2a354c9554478cc33e234 (diff)
downloadgcc-e089e43365f7f2a90979e2316aea25d44823f5a3.zip
gcc-e089e43365f7f2a90979e2316aea25d44823f5a3.tar.gz
gcc-e089e43365f7f2a90979e2316aea25d44823f5a3.tar.bz2
ipa-prop: Fix multiple-target speculation resolution
As the FIXME which this patch removes states, the current code does not work when a call with multiple speculative targets gets resolved through parameter tracking during inlining - it feeds the inliner an edge it has already dealt with. The patch makes the code which should prevent it aware of the possibility that that speculation can have more than one target now. gcc/ChangeLog: 2020-09-30 Martin Jambor <mjambor@suse.cz> PR ipa/96394 * ipa-prop.c (update_indirect_edges_after_inlining): Do not add resolved speculation edges to vector of new direct edges even in presence of multiple speculative direct edges for a single call. gcc/testsuite/ChangeLog: 2020-09-30 Martin Jambor <mjambor@suse.cz> PR ipa/96394 * gcc.dg/tree-prof/pr96394.c: New test.
Diffstat (limited to 'gcc/cp/decl.c')
0 files changed, 0 insertions, 0 deletions