Commit d51855f
authored
[RISCV] Fix assertion failure from performBUILD_VECTORCombine when the binop is a shift. (#69349)
The RHS of a shift can have a different type than the LHS. If there are
undefs in the vector, we need the undef added to the RHS to match the
type of any shift amounts that are also added to the vector.
For now just don't add shifts if their RHS and LHS don't match.1 parent 8175190 commit d51855f
File tree
2 files changed
+17
-1
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13717 | 13717 | | |
13718 | 13718 | | |
13719 | 13719 | | |
13720 | | - | |
| 13720 | + | |
13721 | 13721 | | |
13722 | 13722 | | |
13723 | 13723 | | |
| |||
13763 | 13763 | | |
13764 | 13764 | | |
13765 | 13765 | | |
| 13766 | + | |
| 13767 | + | |
| 13768 | + | |
| 13769 | + | |
13766 | 13770 | | |
13767 | 13771 | | |
13768 | 13772 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
0 commit comments