https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116765
Hongtao Liu <liuhongt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |liuhongt at gcc dot gnu.org --- Comment #3 from Hongtao Liu <liuhongt at gcc dot gnu.org> --- So -mavx2 is sufficient to reprodcue the issue. There're cross-iteration dependence for the inner loop ok[i][j] = ok[i][j] | ok[i + 1][j] | ok[i][j - 1]; loop vectorizer shouldn't use 256-bit for vectorization(128-bit is fine since std::bitset<105> takes 128-bit, it's slp inside the loop)