Commit a786cde
committed
[AArch64] Add custom lowering for load <3 x i8>.
Add custom combine to lower load <3 x i8> as the more efficient sequence
below:
ldrb wX, [x0, swiftlang#2]
ldrh wY, [x0]
orr wX, wY, wX, lsl swiftlang#16
fmov s0, wX
At the moment, there are almost no cases in which such vector operations
will be generated automatically. The motivating case is non-power-of-2
SLP vectorization: llvm#777901 parent 8336515 commit a786cde
File tree
2 files changed
+65
-33
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
2 files changed
+65
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21095 | 21095 | | |
21096 | 21096 | | |
21097 | 21097 | | |
| 21098 | + | |
| 21099 | + | |
| 21100 | + | |
| 21101 | + | |
| 21102 | + | |
| 21103 | + | |
| 21104 | + | |
| 21105 | + | |
| 21106 | + | |
| 21107 | + | |
| 21108 | + | |
| 21109 | + | |
| 21110 | + | |
| 21111 | + | |
| 21112 | + | |
| 21113 | + | |
| 21114 | + | |
| 21115 | + | |
| 21116 | + | |
| 21117 | + | |
| 21118 | + | |
| 21119 | + | |
| 21120 | + | |
| 21121 | + | |
| 21122 | + | |
| 21123 | + | |
| 21124 | + | |
| 21125 | + | |
| 21126 | + | |
| 21127 | + | |
| 21128 | + | |
| 21129 | + | |
| 21130 | + | |
| 21131 | + | |
| 21132 | + | |
| 21133 | + | |
| 21134 | + | |
| 21135 | + | |
| 21136 | + | |
| 21137 | + | |
| 21138 | + | |
| 21139 | + | |
| 21140 | + | |
| 21141 | + | |
21098 | 21142 | | |
21099 | 21143 | | |
21100 | 21144 | | |
| |||
21106 | 21150 | | |
21107 | 21151 | | |
21108 | 21152 | | |
21109 | | - | |
21110 | | - | |
| 21153 | + | |
| 21154 | + | |
| 21155 | + | |
| 21156 | + | |
| 21157 | + | |
| 21158 | + | |
| 21159 | + | |
21111 | 21160 | | |
21112 | 21161 | | |
| 21162 | + | |
21113 | 21163 | | |
21114 | 21164 | | |
21115 | 21165 | | |
| |||
Lines changed: 13 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
16 | 11 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 12 | | |
22 | 13 | | |
23 | 14 | | |
| |||
47 | 38 | | |
48 | 39 | | |
49 | 40 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 41 | + | |
| 42 | + | |
53 | 43 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
60 | 47 | | |
61 | 48 | | |
62 | | - | |
63 | 49 | | |
64 | 50 | | |
65 | 51 | | |
| |||
193 | 179 | | |
194 | 180 | | |
195 | 181 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
204 | 186 | | |
| 187 | + | |
205 | 188 | | |
206 | 189 | | |
207 | 190 | | |
208 | | - | |
209 | 191 | | |
210 | 192 | | |
211 | 193 | | |
| |||
0 commit comments