projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89576d8
)
Free stale summaries in ipa-pure-const
author
Jan Hubicka
<jh@suse.cz>
Thu, 22 Oct 2020 04:34:48 +0000
(06:34 +0200)
committer
Jan Hubicka
<jh@suse.cz>
Thu, 22 Oct 2020 04:34:48 +0000
(06:34 +0200)
* ipa-pure-const.c (funct_state_summary_t::insert): Free stale
summaries.
gcc/ipa-pure-const.c
patch
|
blob
|
history
diff --git
a/gcc/ipa-pure-const.c
b/gcc/ipa-pure-const.c
index 1af3206056e493b9a35ce793e6944c1f40fd1689..70930a5eac05da2acf670f7fb445ea42fd3bd8cb 100644
(file)
--- a/
gcc/ipa-pure-const.c
+++ b/
gcc/ipa-pure-const.c
@@
-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. */