Re: [PATCH] tree-optimization/100089 - avoid leaving scalar if-converted code around

2021-08-24 Thread Richard Sandiford via Gcc-patches
Richard Biener via Gcc-patches writes: > This avoids leaving scalar if-converted code around for the case > of BB vectorizing an if-converted loop body when using the very-cheap > cost model. In this case we scan not vectorized scalar stmts in > the basic-block vectorized for COND_EXPRs and force

[PATCH] tree-optimization/100089 - avoid leaving scalar if-converted code around

2021-08-24 Thread Richard Biener via Gcc-patches
This avoids leaving scalar if-converted code around for the case of BB vectorizing an if-converted loop body when using the very-cheap cost model. In this case we scan not vectorized scalar stmts in the basic-block vectorized for COND_EXPRs and force the vectorization to be marked as not profitabl