https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108912
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the vectorizer is over vectorizing this code slightly. The easiest fix is at add: if (stage_num_col > 12) __builtin_unreachable(); and if (stage_num_row > 12) __builtin_unreachable(); I thought there was another bug related to this warning/vectorizer over vectorizing but I can't find it right now.