Commit 44481f5
[DAGCombine] Change isBuildVectorAll* -> isConstantSplatVectorAll* for Vselect (llvm#147305)
Change isBuildVectorAll* -> isConstantSplatVectorAll* in VSelect in case
the fold happens after BuildVector has been canonically transformed to
Splat or if the Splat is initially in vselect already
- Fixes llvm#73454
- Update related test cases, add extra tests in wasm
---------
Co-authored-by: Simon Pilgrim <[email protected]>1 parent e608e3f commit 44481f5
File tree
3 files changed
+78
-12
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/WebAssembly
3 files changed
+78
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13091 | 13091 | | |
13092 | 13092 | | |
13093 | 13093 | | |
13094 | | - | |
13095 | | - | |
13096 | | - | |
13097 | | - | |
| 13094 | + | |
| 13095 | + | |
| 13096 | + | |
| 13097 | + | |
13098 | 13098 | | |
13099 | 13099 | | |
13100 | 13100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 110 | | |
114 | | - | |
| 111 | + | |
| 112 | + | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
1558 | 1556 | | |
1559 | 1557 | | |
1560 | 1558 | | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
1564 | 1559 | | |
1565 | | - | |
| 1560 | + | |
| 1561 | + | |
1566 | 1562 | | |
1567 | 1563 | | |
1568 | 1564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
0 commit comments