Commit c84c507
[SLP]Gather scalarized calls
If the calls won't be vectorized, but will be scalarized after
vectorization, they should be build as buildvector nodes, not vector
nodes. Vectorization of such calls leads to incorrect cost estimation,
does not allow to calculate correctly spills costs.
Reviewers: lukel97, preames
Reviewed By: preames
Pull Request: llvm#1250701 parent de57b6e commit c84c507
File tree
14 files changed
+1189
-613
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer
- AArch64
- NVPTX
- RISCV
- X86
14 files changed
+1189
-613
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7659 | 7659 | | |
7660 | 7660 | | |
7661 | 7661 | | |
7662 | | - | |
| 7662 | + | |
| 7663 | + | |
7663 | 7664 | | |
7664 | 7665 | | |
7665 | 7666 | | |
7666 | 7667 | | |
7667 | | - | |
7668 | | - | |
7669 | | - | |
7670 | | - | |
7671 | | - | |
7672 | | - | |
7673 | | - | |
7674 | | - | |
7675 | | - | |
7676 | | - | |
7677 | 7668 | | |
7678 | 7669 | | |
7679 | 7670 | | |
7680 | 7671 | | |
7681 | | - | |
| 7672 | + | |
7682 | 7673 | | |
7683 | 7674 | | |
7684 | 7675 | | |
7685 | 7676 | | |
7686 | 7677 | | |
7687 | 7678 | | |
| 7679 | + | |
| 7680 | + | |
| 7681 | + | |
| 7682 | + | |
| 7683 | + | |
| 7684 | + | |
| 7685 | + | |
| 7686 | + | |
| 7687 | + | |
| 7688 | + | |
| 7689 | + | |
| 7690 | + | |
| 7691 | + | |
| 7692 | + | |
| 7693 | + | |
7688 | 7694 | | |
7689 | 7695 | | |
7690 | 7696 | | |
| |||
8028 | 8034 | | |
8029 | 8035 | | |
8030 | 8036 | | |
| 8037 | + | |
| 8038 | + | |
| 8039 | + | |
| 8040 | + | |
| 8041 | + | |
| 8042 | + | |
8031 | 8043 | | |
8032 | 8044 | | |
8033 | 8045 | | |
| |||
Lines changed: 130 additions & 86 deletions
Large diffs are not rendered by default.
Lines changed: 130 additions & 86 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| |||
0 commit comments