https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66237
--- Comment #4 from Mikhail Maltsev <miyuki at gcc dot gnu.org> --- Created attachment 35593 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35593&action=edit Proposed patch Please try this patch. I tested it on the attached profile and it seems to fix the ICE.