https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108953
--- Comment #10 from Thomas de Bock <tdebock at DRWUK dot com> --- Perhaps a similar tree-ssa pass for detecting these comparison chains, replacing them with __builtin_memcmp if vectorization is enabled, would be appropriate? Since memcmp seems to vectorize properly in gcc as well.