https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96480
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[8/9/10/11 Regression] |[8/9/10 Regression] missed
|missed optimisation: |optimisation: unnecessary
|unnecessary compare in |compare in standard
|standard algorithms |algorithms
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Should be fixed on the trunk.
As it is essentially a new optimization, not sure if it is a good idea to
backport it, even when it has been a regression on this testcase.