https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65862
--- Comment #9 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Created attachment 35503 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35503&action=edit ira-hook.patch Here is the patch. Could you try it and give me your opinion about it. Thanks.