[all-commits] [llvm/llvm-project] 00c4e0: [RISCV] Guard the ISD::EXTRACT_VECTOR_ELT handling...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Feb 17 18:26:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00c4e0a8f60b73a92a319963e84bfc9fdeee5b19
      https://github.com/llvm/llvm-project/commit/00c4e0a8f60b73a92a319963e84bfc9fdeee5b19
  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-extract.ll

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list