https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398
--- Comment #24 from Tamar Christina <tnfchris at gcc dot gnu.org> --- > if (pb[len] != cur[len]) Ah sorry, it also access cur + len, so no, indeed I think only unrolling is possible here. Unless cur was originally a static array and you can tell it's size under LTO?