https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110711
--- Comment #6 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #5) > Looks like it's GCC13 regression, GCC12.3 successfully vectorizes k_std_max https://godbolt.org/z/6111MP354