https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166
--- Comment #28 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Mark Wielaard from comment #27) > With gcc-15-2794-g5b999997d1a most insn-*.cc files compile in minutes. > The only exception is insn-recog.cc which takes 85 minutes (1 hour 25 > minutes). > > Time variable usr sys > wall GGC [...] > TOTAL :4977.01 152.84 5153.57 > 5635M > > It is one large (19MB) file on risc-v. There is a bug #116146 to split it up. I'll note this is a flat profile and definitely a different "bug" (if one at all). I'll also note that once functions cross a certain size boundary some data structures fall out of caches and you'll observe a general slowdown everywhere - that's of course more pronounced on cache-starved implementations. It might be interesting to have statistics on function sizes in insn-recog.cc to see if there's any outliers - if it's just very many there's nothing to do but split the file up. > grep ^static insn-recog.cc | wc -l 2404 so it's not obvious it's just many (that would make each function ~250 lines).