[all-commits] [llvm/llvm-project] 9620ce: [RISCV] Support fixed-length vector FP_ROUND & FP_...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Feb 25 04:22:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9620ce90d7238c5ff450a83b49cbc4b811d19830
      https://github.com/llvm/llvm-project/commit/9620ce90d7238c5ff450a83b49cbc4b811d19830
  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/RISCVInstrInfoVSDPatterns.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-conv.ll

  Log Message:
  -----------
  [RISCV] Support fixed-length vector FP_ROUND & FP_EXTEND

This patch extends the support for vector FP_ROUND and FP_EXTEND by
including support for fixed-length vector types. Since fixed-length
vectors use "VL" nodes and scalable vectors can use the standard nodes,
there is slightly more to do in the fixed-length case. A helper function
was introduced to try and reduce the divergent paths. It is expected
that this function will similarly come in useful for lowering the
int-to-fp and fp-to-int operations for fixed-length vectors.

Reviewed By: craig.topper

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




More information about the All-commits mailing list