[RISCV] Guard the ISD::EXTRACT_VECTOR_ELT handling in ReplaceNodeResults against...
authorCraig Topper <craig.topper@sifive.com>
Thu, 18 Feb 2021 02:19:22 +0000 (18:19 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 18 Feb 2021 02:25:38 +0000 (18:25 -0800)
commit00c4e0a8f60b73a92a319963e84bfc9fdeee5b19
tree0bb42704f415b1b1352df6c36e852cb81bec6566
parentff6c84b803c6a7f5e79dcdbad25332dc7936303c
[RISCV] Guard the ISD::EXTRACT_VECTOR_ELT handling in ReplaceNodeResults against fixed vectors and non-MVT types.

The type legalizer is calling this code based on the scalar type so
we need to verify the input type is a scalable vector.

The vector type has also not been legalized yet when this is called
so we need to use EVT for it.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract.ll [new file with mode: 0644]