Commit b3257c3
committed
[LegalizeVectorTypes] Allow non-undef vectors when widening insert_subvector op
When widening an insert_subvector operand there's currently a restriction that the vector being inserted into has to be undef.
It looks like this is just a conservative restriction from when it was first added: https://reviews.llvm.org/D102501
Nothing comes to mind as to why we can't allow non-undef vectors.
Fixes #1149001 parent 3a26feb commit b3257c3
File tree
2 files changed
+10
-1
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/RISCV/rvv
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7066 | 7066 | | |
7067 | 7067 | | |
7068 | 7068 | | |
7069 | | - | |
| 7069 | + | |
7070 | 7070 | | |
7071 | 7071 | | |
7072 | 7072 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
0 commit comments