https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117717
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Richard Biener from comment #7) > This looks like the same as PR115777 It is the same. Just slightly different sorting. You have: if (v[k-1] > v[k]) swap(v[k-1], v[k]) and if (a[i] < a[i - 1]) { t = a[i]; a[i] = a[i - 1]; a[i - 1] = t; s = 1; } Which is exactly the same pattern (just swapped a < b to b > a). I was looking for that one too but for some reason I could not find it. *** This bug has been marked as a duplicate of bug 115777 ***