https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89774
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marius Messerschmidt from comment #2)
> Is something like that already implemented or if not, do you think that this
> is useful and could be implemented?
This optimization is mostly done already. Did you check before posting that
comment?