[all-commits] [llvm/llvm-project] cbcf53: [RISCV] Expand bf16 FNEG/FABS/FCOPYSIGN (#108245)

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Sep 11 22:20:13 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbcf5313e8da5446d808b73e91b64e4c6e0da0c3
      https://github.com/llvm/llvm-project/commit/cbcf5313e8da5446d808b73e91b64e4c6e0da0c3
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-09-12 (Thu, 12 Sep 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    A llvm/test/CodeGen/RISCV/rvv/vfabs-sdnode-bf16.ll
    A llvm/test/CodeGen/RISCV/rvv/vfcopysign-sdnode-bf16.ll
    A llvm/test/CodeGen/RISCV/rvv/vfneg-sdnode-bf16.ll

  Log Message:
  -----------
  [RISCV] Expand bf16 FNEG/FABS/FCOPYSIGN (#108245)

The motivation for this is to start promoting bf16 ops to f32 so that we
can mark bf16 as a supported type in
RISCVTTIImpl::isElementTypeLegalForScalableVector and scalably-vectorize
it.

This starts with expanding the nodes that can't be promoted to f32 due
to canonicalizing NaNs, similarly to f16 in #106652.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list