[all-commits] [llvm/llvm-project] eb2393: [RISCV] Support vector conversions between fp and i1

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon May 31 02:03:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb2393659113696adf2bd770917f3109d1455c76
      https://github.com/llvm/llvm-project/commit/eb2393659113696adf2bd770917f3109d1455c76
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-05-31 (Mon, 31 May 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp2i.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-i2fp.ll
    M llvm/test/CodeGen/RISCV/rvv/vfptoi-sdnode.ll
    M llvm/test/CodeGen/RISCV/rvv/vitofp-sdnode.ll

  Log Message:
  -----------
  [RISCV] Support vector conversions between fp and i1

This patch custom lowers FP_TO_[US]INT and [US]INT_TO_FP conversions
between floating-point and boolean vectors. As the default action is
scalarization, this patch both supports scalable-vector conversions and
improves the code generation for fixed-length vectors.

The lowering for these conversions can piggy-back on the existing
lowering, which lowers the operations to a supported narrowing/widening
conversion and then either an extension or truncation.

Reviewed By: craig.topper

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




More information about the All-commits mailing list