On Tue, 6 Aug 2019, Martin Liška wrote:
Anyway, I'm sending patch that considers only such new/delete operators that are not a clone of an original type. That should make the current DCE code more solid.
DECL_IS_REPLACEABLE_OPERATOR_NEW_P seems to have been replaced with DECL_IS_OPERATOR_NEW_P. Is that on purpose?
I like your cleanup of having a single function to decide if this is the kind of operator new/delete DCE can handle, but you may have introduced long lines in the substitution.
-- Marc Glisse