https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99531
--- Comment #4 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Thank you for reporting this. It is true my patch caused this. I've reproduced the bug on master too. I will be working on this PR. I think a fix will be ready on the next week the best as the fix will touch cost calculations and will require a lot of testing on different targets.