https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I can't bisect this because r14-386 (for PR109666) fixed an ICE that this code hits, and r14-386 is already slow. So the problem was introduced somewhere before that.