Commit 62db1c8
committed
[SLP]Better decision making on whether to try stores packs for vectorization
Since the stores are sorted by distance, comparing the indices in the
original array and early exit, if the index is less than the index of
the last store, not always the best strategy. Better to remove such
stores explicitly to try better to check for the vectorization
opportunity.
Fixes #1150081 parent bdf8e30 commit 62db1c8
File tree
2 files changed
+11
-11
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/RISCV
2 files changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18515 | 18515 | | |
18516 | 18516 | | |
18517 | 18517 | | |
| 18518 | + | |
| 18519 | + | |
18518 | 18520 | | |
18519 | | - | |
| 18521 | + | |
| 18522 | + | |
| 18523 | + | |
| 18524 | + | |
| 18525 | + | |
18520 | 18526 | | |
18521 | 18527 | | |
18522 | 18528 | | |
18523 | 18529 | | |
18524 | | - | |
| 18530 | + | |
18525 | 18531 | | |
18526 | 18532 | | |
18527 | 18533 | | |
18528 | 18534 | | |
18529 | 18535 | | |
18530 | 18536 | | |
18531 | | - | |
18532 | | - | |
| 18537 | + | |
18533 | 18538 | | |
18534 | 18539 | | |
18535 | 18540 | | |
18536 | | - | |
| 18541 | + | |
18537 | 18542 | | |
18538 | 18543 | | |
18539 | 18544 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 9 | + | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
| |||
0 commit comments