Re: [PATCH 2/2] Harden SLP reduction support wrt STMT_VINFO_REDUC_IDX

2024-06-27 Thread Richard Biener
On Thu, 27 Jun 2024, Richard Biener wrote: > The following makes sure that for a SLP reductions all lanes have > the same STMT_VINFO_REDUC_IDX. Once we move that info and can adjust > it we can implement swapping. It also makes the existing protection > against operand swapping trigger for all s

[PATCH 2/2] Harden SLP reduction support wrt STMT_VINFO_REDUC_IDX

2024-06-27 Thread Richard Biener
The following makes sure that for a SLP reductions all lanes have the same STMT_VINFO_REDUC_IDX. Once we move that info and can adjust it we can implement swapping. It also makes the existing protection against operand swapping trigger for all stmts participating in a reduction, not just the fina