https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98365
--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> --- > Shouldn't cnt_21 = PHI <cnt_9(7), 0(15)>, stmt relevant? > for stmt: cnt.1_7 = (unsigned char) cnt_21, the operand is defined by a previous iteration of the loop which is assumed to be handled in induction/reduction. But vect_analyze_scalar_cycles can't get reduction of cnt as (cnt_9 = _3 == _6 ? cnt_16 : cnt_21;_ since scalar evolution only handle - an SSA_NAME, - an INTEGER_CST, - a PLUS_EXPR, - a POINTER_PLUS_EXPR, - a MINUS_EXPR, - an ASSERT_EXPR, - other cases are not yet handled. */