[all-commits] [llvm/llvm-project] c4efcd: [RISCV] Generalise shouldExtendTypeInLibcall logic...

Alex Bradbury via All-commits all-commits at lists.llvm.org
Tue May 30 03:04:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4efcd6970e22e523e9f0088614dbcade05491bc
      https://github.com/llvm/llvm-project/commit/c4efcd6970e22e523e9f0088614dbcade05491bc
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    M llvm/test/CodeGen/RISCV/bfloat.ll
    M llvm/test/CodeGen/RISCV/half-convert.ll

  Log Message:
  -----------
  [RISCV] Generalise shouldExtendTypeInLibcall logic to apply to all <XLEN floats on soft ABIs

This results in improved codegen for half/bf16 libcalls on soft ABIs

Adds a RISCVSubtarget helper method for determining if a soft FP ABI is
being targeted (future bf16 related patches make use of this).

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




More information about the All-commits mailing list