https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77287
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |target --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try adding -march=intel or-mtune=intel . The default tuning for gcc is generic which is combination of Intel and amd tuning. And because amd tuning needs not to use gprs and SIMD registers at the same time spilling is faster there. It tunes for that.