https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154
--- Comment #50 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Anyway, given that in the sorting the last entry has the maximum number of occurrences, I think without trying to do more smarts best would be to avoid evaluating that last condition for now.