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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The alias machinery knows nothing about "type" rules for function calls so I
don't see how this is possible w/o running into the same issue as with removing
the redundant strlen call.

That is, for g() hopefully we fold the snprintf to strlen.  Not sure why
that's done only late during the strlen pass and not by gimple_fold ().

Reply via email to