[all-commits] [llvm/llvm-project] 02f435: [RISCV] Support fixed-length vector i2fp/fp2i conv...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Feb 25 05:54:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02f435db0b5f91986a7408ff8a1f1fda4918bde0
      https://github.com/llvm/llvm-project/commit/02f435db0b5f91986a7408ff8a1f1fda4918bde0
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-02-25 (Thu, 25 Feb 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp2i.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-i2fp.ll

  Log Message:
  -----------
  [RISCV] Support fixed-length vector i2fp/fp2i conversions

This patch extends the support for scalable-vector int->fp and fp->int
conversions by additionally handling fixed-length vectors.

The existing scalable-vector lowering re-expresses widening/narrowing by
x4+ conversions as standard nodes. The fixed-length vector support slots
in at "the end" of this process by lowering the now equally-sized and
widening/narrowing by x2 nodes to our custom VL versions.

Reviewed By: craig.topper

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




More information about the All-commits mailing list