https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82739
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-10-27 CC| |marxin at gcc dot gnu.org, | |redi at gcc dot gnu.org Summary|Sort is 30% slower compared |[5/6/7/8 Regression] Sort |to gcc44 on presorted array |is 30% slower compared to | |gcc44 on presorted array Ever confirmed|0 |1 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Confirmed, I see one regression that happened in r217669: Author: jason * cp-gimplify.c (genericize_cp_loop): Use LOOP_EXPR. (genericize_for_stmt): Handle null statement-list. It's revision that is firstly in version 4.9. It caused following change (I slightly reduced # of iterations): after: 5.376292 before: 4.322826 In between 4.5.0 and 4.9.0 I see just small regression. Key question is how changed std::__introsort_loop<__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, long, __gnu_cxx::__ops::_Iter_less_iter> function with that revision. Jonathan, can you please take a look?