tree-optimization/97151 - improve PTA for C++ operator delete
authorRichard Biener <rguenther@suse.de>
Wed, 23 Sep 2020 08:11:03 +0000 (10:11 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 23 Sep 2020 08:11:03 +0000 (10:11 +0200)
commit9e64f17d044767248175fece80a2759d94c45fc4
tree0ba70e878d34705b098a986005ee6739a6585b88
parent371f0b990f2bbf638b44da27cf6fc5f86e0d6d4e
tree-optimization/97151 - improve PTA for C++ operator delete

C++ operator delete, when DECL_IS_REPLACEABLE_OPERATOR_DELETE_P,
does not cause the deleted object to be escaped.  It also has no
other interesting side-effects for PTA so skip it like we do
for BUILT_IN_FREE.

2020-09-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97151
* tree-ssa-structalias.c (find_func_aliases_for_call):
DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
arguments.

* g++.dg/cpp1y/new1.C: Adjust for two more handled transforms.
gcc/testsuite/g++.dg/cpp1y/new1.C
gcc/tree-ssa-structalias.c