[all-commits] [llvm/llvm-project] cd7959: [RISCV] Teach lowerScalarInsert to handle scalar v...

Yeting Kuo via All-commits all-commits at lists.llvm.org
Wed Aug 2 19:53:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd7959930443f09403df7a9303634b50163a3d80
      https://github.com/llvm/llvm-project/commit/cd7959930443f09403df7a9303634b50163a3d80
  Author: Yeting Kuo <yeting.kuo at sifive.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int-vp.ll

  Log Message:
  -----------
  [RISCV] Teach lowerScalarInsert to handle scalar value is the first element of a fixed vector.

D155929 teach lowerScalarInsert to handl start value (extractelement scalable_vector, 0)
and specifically converts fixed extracted vectors to scalable vectors when
lowering vector reduction. It's not enough because there is another way to
create (extractelement fixed_vector, 0) as a start value of lowerScalarInsert
like #64327.

#64327: https://github.com/llvm/llvm-project/issues/64327.

Reviewed By: craig.topper

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




More information about the All-commits mailing list