https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My question was rather do you an original code where we are now missing an optimization and you reduced the code down to this and what happens if you correct the issue of using an uninit pointer (because unless the initialization is from malloc and then to free, the removal of the store is no longer valid optimization).