Commit f5bd88b
tree-optimization/117709 - bogus offset for gather load
When diverting to VMAT_GATHER_SCATTER we fail to zero *poffset
which was previously set if a load was classified as
VMAT_CONTIGUOUS_REVERSE. The following refactors
get_group_load_store_type a bit to avoid this but this all needs
some serious TLC.
PR tree-optimization/117709
* tree-vect-stmts.cc (get_group_load_store_type): Only
set *poffset when we end up with VMAT_CONTIGUOUS_DOWN
or VMAT_CONTIGUOUS_REVERSE.1 parent 2383ed1 commit f5bd88b
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
| 2051 | + | |
2051 | 2052 | | |
2052 | 2053 | | |
2053 | 2054 | | |
| |||
2105 | 2106 | | |
2106 | 2107 | | |
2107 | 2108 | | |
2108 | | - | |
| 2109 | + | |
| 2110 | + | |
2109 | 2111 | | |
2110 | 2112 | | |
2111 | 2113 | | |
| |||
2375 | 2377 | | |
2376 | 2378 | | |
2377 | 2379 | | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
2378 | 2384 | | |
2379 | 2385 | | |
2380 | 2386 | | |
| |||
0 commit comments