[Bug tree-optimization/93745] Redundant store not eliminated with intermediate instruction

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 15 07:48:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93745

--- Comment #4 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Placement new is translated to a plain pointer assignment on GIMPLE, so
optimizers cannot distinguish programs that had placement new from programs
that did not.

(in C we need memory from malloc to be reusable, so imagine that instead of
'double d' the example had a store via a 'double *')


More information about the Gcc-bugs mailing list