[all-commits] [llvm/llvm-project] 016eca: [RISCV] Guard LowerINSERT_VECTOR_ELT against fixed...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Feb 17 19:28:16 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 016eca8f90a9be1ae797a59c40c7161499b02909
https://github.com/llvm/llvm-project/commit/016eca8f90a9be1ae797a59c40c7161499b02909
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-02-17 (Wed, 17 Feb 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert.ll
Log Message:
-----------
[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.
More information about the All-commits
mailing list