https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98144
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- So testing on recent trunk shows > /usr/bin/time ~/install/gcc-11.0/usr/local/bin/g++ t.ii -O2 -S -o /dev/null 29.23user 1.21system 0:30.54elapsed 99%CPU (0avgtext+0avgdata 5933552maxresident)k 57448inputs+0outputs (68major+1644983minor)pagefaults 0swaps > /usr/bin/time ~/install/gcc-11.0/usr/local/bin/g++ t.ii -O2 -S -o /dev/null > -fno-ree 32.17user 0.54system 0:33.12elapsed 98%CPU (0avgtext+0avgdata 1587864maxresident)k 0inputs+0outputs (0major+473366minor)pagefaults 0swaps aka -free ups peak memory use by 4GB. I'm testing a patch to teach it some sanity: > /usr/bin/time ~/install/gcc-test/usr/local/bin/g++ t.ii -O2 -S -o /dev/null > 48.63user 0.36system 0:49.01elapsed 99%CPU (0avgtext+0avgdata 1707272maxresident)k 0inputs+0outputs (0major+462159minor)pagefaults 0swaps with only a 100MB peak RSS penalty of -free.