Free stale summaries in ipa-pure-const
* ipa-pure-const.c (funct_state_summary_t::insert): Free stale summaries.
This commit is contained in:
parent
89576d863a
commit
d5d9706f95
1 changed files with 3 additions and 0 deletions
|
@ -1152,6 +1152,9 @@ funct_state_summary_t::insert (cgraph_node *node, funct_state_d *state)
|
|||
new (state) funct_state_d (*a);
|
||||
free (a);
|
||||
}
|
||||
else
|
||||
/* Do not keep stale summaries. */
|
||||
funct_state_summaries->remove (node);
|
||||
}
|
||||
|
||||
/* Called when new clone is inserted to callgraph late. */
|
||||
|
|
Loading…
Add table
Reference in a new issue