commit | 0e743e93373c428a7bc9c2f23216d60d951102a8 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@sifive.com> | Wed Feb 17 18:56:11 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 19 03:22:03 2021 -0800 |
tree | 49b28b0fa9730ed2bf2e970d2c13b1d942b4bf27 | |
parent | c70cac1a80585f405e2430c2828f34e95c2a598b [diff] |
[RISCV] Guard LowerINSERT_VECTOR_ELT against fixed vectors. The type legalizer can call this code based on the scalar type so we need to verify the vector type is a scalable vector. I think due to how type legalization visits nodes, the vector type will have already been legalized so we don't have an issue with using MVT here like we did for EXTRACT_VECTOR_ELT. I've added a test just in case. GitOrigin-RevId: 016eca8f90a9be1ae797a59c40c7161499b02909