https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79966
--- Comment #13 from Martin Jambor <jamborm at gcc dot gnu.org> --- I can confirm this, even on current trunk. The reason is that runtptests/3 -> tp_sum/5 is not inlined because it exceeds max-inline-insns-auto. I have to set the param to 43 - the default is 15 - for the function to be inlined and then the result is fast again. In GCC 8 the value of the param was 30. After a very superficial glance at the function in the release_ssa dump, the function does not seem to be any bigger than in the gcc 8 times.