tree-optimization/111970 - fix issue with SLP of emulated gather/scatter
commitc656d268c9dac8b6f710b9bbd399214cb11b3287
authorRichard Biener <rguenther@suse.de>
Mon, 20 Nov 2023 14:16:44 +0000 (20 15:16 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 21 Nov 2023 07:16:57 +0000 (21 08:16 +0100)
tree1293e3cd79b021f13991647eedf566c37dba2392
parent7bf1de918608e2d0b5a3ad0923040acb1819d9a5
tree-optimization/111970 - fix issue with SLP of emulated gather/scatter

There's a missed index adjustment for the SLP vector number when
computing the index/data vectors for emulated gather/scatter with SLP.
The following fixes this.

PR tree-optimization/111970
* tree-vect-stmts.cc (vectorizable_load): Fix offset calculation
for SLP gather load.
(vectorizable_store): Likewise for SLP scatter store.
gcc/tree-vect-stmts.cc