https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115631
--- Comment #3 from Richard Sandiford <rsandifo at gcc dot gnu.org> --- I've now pushed a debug counter for late_combine. Sorry to ask, but could you bisect on N in -fdbg-cnt=late_combine:N to see which transformation is causing the problem?