You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
define <8 x i32> @foo(<8 x i32> %a, <2 x i32> %b) {
%result = tailcall <8 x i32> @llvm.vector.insert.v8i32.v2i32(<8 x i32> %a, <2 x i32> %b, i640)
ret <8 x i32> %result
}
We get a fatal error in DAGTypeLegalizer::WidenVecOp_INSERT_SUBVECTOR for this seemingly simple code.
I'm not sure how this could be fixed. Can we just replace the INSERT_SUBVECTOR with a series of INSERT_VECTOR_ELT nodes?
There's also #102016 for AArch that also looks like the same problem as this one.
The text was updated successfully, but these errors were encountered:
```llvm
define <8 x i32> @foo(<8 x i32> %a, <2 x i32> %b) {
%result = tail call <8 x i32> @llvm.vector.insert.v8i32.v2i32(<8 x i32> %a, <2 x i32> %b, i64 0)
ret <8 x i32> %result
}
```
We get a fatal error in DAGTypeLegalizer::WidenVecOp_INSERT_SUBVECTOR for this seemingly simple code.
I'm not sure how this could be fixed. Can we just replace the INSERT_SUBVECTOR with a series of INSERT_VECTOR_ELT nodes?
There's also #102016 for AArch that also looks like the same problem as this one.
…OR_ELT`
If the operands to `INSERT_SUBVECTOR` can't be widened legally, just replace the `INSERT_SUBVECTOR` with a series of `INSERT_VECTOR_ELT`.
Closesllvm#124255 (and possibly llvm#102016)
https://godbolt.org/z/x6qnfPM7W
We get a fatal error in
DAGTypeLegalizer::WidenVecOp_INSERT_SUBVECTOR
for this seemingly simple code.I'm not sure how this could be fixed. Can we just replace the
INSERT_SUBVECTOR
with a series ofINSERT_VECTOR_ELT
nodes?There's also #102016 for AArch that also looks like the same problem as this one.
The text was updated successfully, but these errors were encountered: