https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110489
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So I took a look at the sources, there are very many small functions. This might be the reason why dump files Timevar takes a long time, it is called for each pass and for each function. Maybe that can be improved. the register allocator and schedule costs I suspect is due to there being a small setup cost which multiply by many functions add up.