diff options
author | Richard Biener <rguenther@suse.de> | 2024-06-27 11:36:07 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-06-30 11:42:57 +0200 |
commit | b443d7122ee8013c5af127d3d183a03962967f57 (patch) | |
tree | 0096832bebd0903b843fe90e2a17f9e0abcd56b8 /gcc/tree-vect-loop.cc | |
parent | 3aa004f1db327d5728a8fd0afcfed24e767f0499 (diff) | |
download | gcc-b443d7122ee8013c5af127d3d183a03962967f57.zip gcc-b443d7122ee8013c5af127d3d183a03962967f57.tar.gz gcc-b443d7122ee8013c5af127d3d183a03962967f57.tar.bz2 |
Harden SLP reduction support wrt STMT_VINFO_REDUC_IDX
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 final one marked as reduction-def.
* tree-vect-slp.cc (vect_build_slp_tree_1): Compare
STMT_VINFO_REDUC_IDX.
(vect_build_slp_tree_2): Prevent operand swapping for
all stmts participating in a reduction.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions