https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78709
--- Comment #1 from ErikaMolnar <erika.molnar at cyberthorstudios dot com> --- The code size is smaller because of -ftree-loop-distribute-patterns, this options has no effect on –Os. Could you make this optimization to work on –Os also? as it is quite useful.