Re: [PATCH] [vect] Don't peel nonlinear iv(mult or shift) for epilog when vf is not constant.

2023-02-02 Thread Richard Biener via Gcc-patches
On Thu, 2 Feb 2023, liuhongt wrote: > Normally when vf is not constant, it will be prevented by > vectorizable_nonlinear_inductions, but for this case, it failed going > into > > if (STMT_VINFO_RELEVANT_P (stmt_info)) > { > need_to_vectorize = true; > if

[PATCH] [vect] Don't peel nonlinear iv(mult or shift) for epilog when vf is not constant.

2023-02-01 Thread liuhongt via Gcc-patches
Normally when vf is not constant, it will be prevented by vectorizable_nonlinear_inductions, but for this case, it failed going into if (STMT_VINFO_RELEVANT_P (stmt_info)) { need_to_vectorize = true; if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_induction_def &&