Commit 2f285af
[SLP] Sort PHIs by ExtractElements when relevant (llvm#131229)
Considering the PHIs in order of element extracted can lead to better shuffles.
(cherry picked from commit 4336e5e)1 parent 820edf4 commit 2f285af
File tree
2 files changed
+39
-9
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/AMDGPU
2 files changed
+39
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
18576 | 18576 | | |
18577 | 18577 | | |
18578 | 18578 | | |
18579 | | - | |
| 18579 | + | |
| 18580 | + | |
| 18581 | + | |
| 18582 | + | |
| 18583 | + | |
| 18584 | + | |
| 18585 | + | |
| 18586 | + | |
| 18587 | + | |
| 18588 | + | |
| 18589 | + | |
| 18590 | + | |
| 18591 | + | |
| 18592 | + | |
| 18593 | + | |
| 18594 | + | |
| 18595 | + | |
| 18596 | + | |
| 18597 | + | |
| 18598 | + | |
| 18599 | + | |
| 18600 | + | |
| 18601 | + | |
| 18602 | + | |
| 18603 | + | |
| 18604 | + | |
| 18605 | + | |
| 18606 | + | |
| 18607 | + | |
| 18608 | + | |
18580 | 18609 | | |
| 18610 | + | |
18581 | 18611 | | |
18582 | 18612 | | |
18583 | 18613 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments