https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- fab is a bit late for this part of memcmp folding I guess, I'd have expected that to happen in generic folding like when we inline memcpy. It seems it's actually the strlen pass that inlines the compare.