Commit 4c9921c
committed
[CostModel][X86] Improve cost estimation of insert_subvector shuffle patterns of legalized types
In cases where the base/sub vector type in an insert_subvector pattern legalize to the same width through splitting, we can assume that the shuffle becomes free as the legalized vectors will not overlap.
Note this isn't true if the vectors have been widened during legalization (e.g. v2f32 insertion into v4f32 would legalize to v4f32 into v4f32).
Noticed while working on adding processShuffleMasks handling for SK_PermuteTwoSrc.1 parent 05b907f commit 4c9921c
File tree
11 files changed
+403
-392
lines changed- llvm
- lib/Target/X86
- test
- Analysis/CostModel/X86
- Transforms/VectorCombine/X86
11 files changed
+403
-392
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1630 | 1630 | | |
1631 | 1631 | | |
1632 | 1632 | | |
1633 | | - | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | 1639 | | |
1638 | 1640 | | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
1639 | 1644 | | |
1640 | | - | |
| 1645 | + | |
1641 | 1646 | | |
1642 | 1647 | | |
1643 | 1648 | | |
| |||
Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.
Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.
Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.
Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
98 | 112 | | |
99 | 113 | | |
100 | 114 | | |
| |||
138 | 152 | | |
139 | 153 | | |
140 | 154 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 155 | + | |
| 156 | + | |
144 | 157 | | |
145 | 158 | | |
146 | 159 | | |
| |||
0 commit comments