[GHC] #14378: Unreasonably high memory use when compiling with profiling and -O2/-O2