https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102125
--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- (In reply to Richard Biener from comment #2) > One common source of missed optimizations is gimple_fold_builtin_memory_op > which has [...] Yes, this is the source of the problem. I wonder if this should be scaled by something like MOVE_RATIO to get a more acceptable limit, especially at higher optimization levels.