[all-commits] [llvm/llvm-project] c83905: [RISCV] Add inline expansion for vector fround.

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Feb 4 09:12:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c83905a30855c6c08e275310c7c3a3192c3e29b8
      https://github.com/llvm/llvm-project/commit/c83905a30855c6c08e275310c7c3a3192c3e29b8
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp.ll
    A llvm/test/CodeGen/RISCV/rvv/fround-sdnode.ll

  Log Message:
  -----------
  [RISCV] Add inline expansion for vector fround.

This avoids a crash for scalable vectors and or scalarization for
fixed vectors.

The algorithm is different enough that I don't think it makes sense
to merge with ceil/floor/trunc. Algorithm is adapted from gcc's X86
SSE2 output.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list