[all-commits] [llvm/llvm-project] bee9a9: [RISCV] Use reduction result type for EXTRACT_VECT...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Dec 13 09:15:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bee9a92aec07db15f7ec89278c381654d60e4d02
      https://github.com/llvm/llvm-project/commit/bee9a92aec07db15f7ec89278c381654d60e4d02
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

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

  Log Message:
  -----------
  [RISCV] Use reduction result type for EXTRACT_VECTOR_ELT in lowerReductionSeq.

Remove the call to getSExtOrTrunc.

Reduction ISD nodes produce a scalar result and that result is
allowed to be larger than the vector element type due to type
legalization. This is the same rule we allow for EXTRACT_VECTOR_ELT
for the same reason.

We can copy the result type over from the reduction node to
EXTRACT_VECTOR_ELT.

Reviewed By: reames

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




More information about the All-commits mailing list