https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53976
--- Comment #9 from Oleg Endo <olegendo at gcc dot gnu.org> --- Created attachment 34078 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34078&action=edit Reduced problem from linux kernel This one exposes a problem of the sh_optimize_sett_clrt RTL pass, where it will try to visit/evaluate too many basic blocks/edges and eventually run out of memory.