https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114232
--- Comment #19 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Jan Hubicka from comment #18) > But the problem here is more that optab initializations happens only at > the optimization_node changes and not if we switch from hot function to > cold? I think solving optab init problem is a better solution than the target patch from comment #10. Using optimize_function_for_size_p in named pattern predicate would avoid using the non-optimal pattern also in cold functions, and would be preferrable to using optimize_size.