Commit 7dbfcfa
committed
[DAG] combineInsertEltToShuffle - if EXTRACT_VECTOR_ELT fails to match an existing shuffle op, try to replace an undef op if there is one.
This should fix a number of shuffle regressions in D127115 where the re-ordered combines mean we fail to fold a EXTRACT_VECTOR_ELT/INSERT_VECTOR_ELT sequence into a BUILD_VECTOR if we extract from more than one vector source.1 parent ae10b8a commit 7dbfcfa
File tree
2 files changed
+14
-9
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/X86
2 files changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19233 | 19233 | | |
19234 | 19234 | | |
19235 | 19235 | | |
| 19236 | + | |
| 19237 | + | |
| 19238 | + | |
| 19239 | + | |
| 19240 | + | |
| 19241 | + | |
| 19242 | + | |
| 19243 | + | |
19236 | 19244 | | |
19237 | 19245 | | |
19238 | 19246 | | |
| |||
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | 301 | | |
| 302 | + | |
| 303 | + | |
305 | 304 | | |
306 | 305 | | |
307 | | - | |
308 | | - | |
309 | | - | |
| 306 | + | |
| 307 | + | |
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
| |||
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 324 | | |
| 325 | + | |
| 326 | + | |
330 | 327 | | |
331 | 328 | | |
332 | 329 | | |
| |||
0 commit comments