Commit af3295b
authored
[SLP]Enable splat ordering for loads
Enables splat support for loads with lanes> 2 or number of operands> 2.
Allows better detect splats of loads and reduces number of shuffles in
some cases.
X86, AVX512, -O3+LTO
Metric: size..text
results results0 diff
test-suite :: External/SPEC/CFP2006/433.milc/433.milc.test 154867.00 156723.00 1.2%
test-suite :: External/SPEC/CFP2017rate/526.blender_r/526.blender_r.test 12467735.00 12468023.00 0.0%
Better vectorization quality
Reviewers: RKSimon
Reviewed By: RKSimon
Pull Request: llvm#1151731 parent 43570a2 commit af3295b
File tree
2 files changed
+17
-20
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/RISCV
2 files changed
+17
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2389 | 2392 | | |
2390 | 2393 | | |
2391 | 2394 | | |
| |||
2511 | 2514 | | |
2512 | 2515 | | |
2513 | 2516 | | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
| 2517 | + | |
2517 | 2518 | | |
2518 | 2519 | | |
2519 | 2520 | | |
2520 | 2521 | | |
| 2522 | + | |
| 2523 | + | |
2521 | 2524 | | |
2522 | 2525 | | |
2523 | | - | |
| 2526 | + | |
2524 | 2527 | | |
2525 | | - | |
| 2528 | + | |
2526 | 2529 | | |
2527 | 2530 | | |
2528 | | - | |
2529 | | - | |
2530 | | - | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
2531 | 2534 | | |
2532 | 2535 | | |
2533 | 2536 | | |
| |||
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 11 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
| |||
0 commit comments