https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80125
--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> --- Created attachment 41010 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41010&action=edit another patch I used this one instead. all_adjacent is a pretty useless optimisation here, reg_used_between_p will return almost immediately if the two insns are consecutive.