https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71029
--- Comment #4 from Alisdair Meredith <alisdairm at me dot com> --- Revisiting some of my old bug reports, I can confirm that this performance issue is resolved. I verified it was still present in gcc 10 so that it was not a failure to reproduce on my part, and then stopped looking for which version has the fix as that would mean installing multiple compilers for me :) I believe this issue can be closed, but not sure what the right resolution category would be.