[all-commits] [llvm/llvm-project] 06c5d7: [RISCV] Remove lowerSPLAT_VECTOR

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Mar 15 08:22:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06c5d74090ff00346b8c286bcc27fffbc529cd45
      https://github.com/llvm/llvm-project/commit/06c5d74090ff00346b8c286bcc27fffbc529cd45
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-15 (Tue, 15 Mar 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [RISCV] Remove lowerSPLAT_VECTOR

This code handles fixed vector SPLAT_VECTOR, but is never called in
any tests.

We only form fixed vector splat vectors for vXi64 on RV32 as part
of DAGCombine. This will be type legalized to SPLAT_VECTOR_PARTS.
So the Custom handling for SPLAT_VECTOR is never needed.

This patch makes SPLAT_VECTOR for vXi64 'Legal' on RV32 so that
DAGCombine will create it, but there's no need for Custom handler.
It will still be type legalized to SPLAT_VECTOR_PARTS.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D121673




More information about the All-commits mailing list