https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705
--- Comment #8 from Andrew Macleod <amacleod at redhat dot com> --- This fix I just checked in for 108687 exhibited similar performance characteristics, also in the same pass.. Perhaps it will fix your problem.