Re: [vect] Support min/max + index pattern

2021-05-07 Thread Richard Biener
ure an SLP variant is supported. for (int i = 0; i < n; i++) { if (data[2*i] < best1) { best1 = data[2*i]; best_i1 = 2*i; } if (data[2*i+1] < best2) { best2 = data[2*i+1]; best_i2 = 2*i; } } Richard. > Joel > > [vect] Support min/m

[vect] Support min/max + index pattern

2021-05-05 Thread Joel Hutton via Gcc-patches
s the epilogue for one vectorized scalar stmt at a time. This modification makes one invocation create the epilogue for both related stmts and marks the other as 'done'. Alternate suggestions are welcome. Joel [vect] Support min/max + index pattern Add the capability to vect-loop to suppor