[all-commits] [llvm/llvm-project] 436b87: [SDAG] avoid libcalls to fmin/fmax for soft-float ...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Wed Mar 30 08:22:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 436b875e49ec05f24f7d7660a82fc5c5780221a0
      https://github.com/llvm/llvm-project/commit/436b875e49ec05f24f7d7660a82fc5c5780221a0
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-03-30 (Wed, 30 Mar 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/ARM/vecreduce-fmax-legalization-soft-float.ll
    M llvm/test/CodeGen/ARM/vecreduce-fmin-legalization-soft-float.ll
    M llvm/test/CodeGen/RISCV/fmax-fmin.ll

  Log Message:
  -----------
  [SDAG] avoid libcalls to fmin/fmax for soft-float targets

This is an extension of D70965 to avoid creating a mathlib
call where it did not exist in the original source. Also see
D70852 for discussion about an alternative proposal that was
abandoned.

In the motivating bug report:
https://github.com/llvm/llvm-project/issues/54554
...we also have a more general issue about handling "no-builtin" options.

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




More information about the All-commits mailing list