https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114232
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- It's possibly on a cold path (yes, optimize_function_for_size_p should be stable). Note though that optimize_function_for_size_p might in theory change between vectorization and RTL expansion, so maybe optab queries in the vectorizer are broken by this if we ever re-check that condition after optab initialization.