Commit 5eaa64e
[DAG] replaceShuffleOfInsert - add support for shuffle_vector(scalar_to_vector(x),y) -> insert_vector_elt(y,x,c) (llvm#127210)
Begin extending replaceShuffleOfInsert to handle other forms of scalar insertion into a vector.
I've limited this to targets that have Custom/Legal ISD::INSERT_VECTOR_ELT handling for now - although we can probably always fold this before LegalOperations.1 parent 0f786d6 commit 5eaa64e
File tree
2 files changed
+25
-27
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/PowerPC
2 files changed
+25
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
| |||
26107 | 26108 | | |
26108 | 26109 | | |
26109 | 26110 | | |
26110 | | - | |
26111 | | - | |
| 26111 | + | |
26112 | 26112 | | |
26113 | 26113 | | |
26114 | 26114 | | |
| |||
26131 | 26131 | | |
26132 | 26132 | | |
26133 | 26133 | | |
26134 | | - | |
| 26134 | + | |
26135 | 26135 | | |
26136 | 26136 | | |
26137 | 26137 | | |
| |||
26154 | 26154 | | |
26155 | 26155 | | |
26156 | 26156 | | |
| 26157 | + | |
| 26158 | + | |
| 26159 | + | |
| 26160 | + | |
| 26161 | + | |
| 26162 | + | |
| 26163 | + | |
| 26164 | + | |
| 26165 | + | |
| 26166 | + | |
26157 | 26167 | | |
26158 | 26168 | | |
26159 | 26169 | | |
| |||
26225 | 26235 | | |
26226 | 26236 | | |
26227 | 26237 | | |
26228 | | - | |
| 26238 | + | |
26229 | 26239 | | |
26230 | 26240 | | |
26231 | 26241 | | |
| |||
Lines changed: 11 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 242 | | |
246 | 243 | | |
247 | | - | |
248 | | - | |
| 244 | + | |
| 245 | + | |
249 | 246 | | |
250 | 247 | | |
251 | 248 | | |
| |||
263 | 260 | | |
264 | 261 | | |
265 | 262 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 263 | | |
270 | 264 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
274 | 268 | | |
275 | 269 | | |
276 | 270 | | |
| |||
286 | 280 | | |
287 | 281 | | |
288 | 282 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | 283 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
296 | 287 | | |
297 | 288 | | |
298 | 289 | | |
| |||
308 | 299 | | |
309 | 300 | | |
310 | 301 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | 302 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
318 | 306 | | |
319 | 307 | | |
320 | 308 | | |
| |||
0 commit comments