[all-commits] [llvm/llvm-project] 44e042: [RISCV] Use lowerScalarInsert in lowerReductionSeq...

Philip Reames via All-commits all-commits at lists.llvm.org
Tue Dec 13 09:09:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44e0427cf08516028206e266563ecc3dbfe09f2f
      https://github.com/llvm/llvm-project/commit/44e0427cf08516028206e266563ecc3dbfe09f2f
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

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

  Log Message:
  -----------
  [RISCV] Use lowerScalarInsert in lowerReductionSeq [nfc]

Use the newly introduced helper routine.  At the moment, this generates the same code (at this call site!) since LMUL is restricted to LMUL1 or less, and VL is hard coded to 1.  In a future patch, I will loosen the second part.


  Commit: ecabba04a35432ad94447d199cf6127d57415456
      https://github.com/llvm/llvm-project/commit/ecabba04a35432ad94447d199cf6127d57415456
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

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

  Log Message:
  -----------
  [RISCV] Use lowerScalarInsert when folding op into reduction [nfc]

This doesn't cause any functional change since this is being applied to a insert generated by the same routine.  This is mostly about consolidating the logic for vmv.s.x into one place to simplify future changes.


Compare: https://github.com/llvm/llvm-project/compare/1b0d63c506c0...ecabba04a354


More information about the All-commits mailing list