[all-commits] [llvm/llvm-project] 9257ae: DAG: Use fast variants of fast math libcalls

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jul 10 03:40:36 PDT 2025


  Branch: refs/heads/users/arsenm/dag/use-fast-variants-math-libcalls
  Home:   https://github.com/llvm/llvm-project
  Commit: 9257aec763c09a1c0c4a52b9403b111422f513cd
      https://github.com/llvm/llvm-project/commit/9257aec763c09a1c0c4a52b9403b111422f513cd
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M llvm/include/llvm/IR/RuntimeLibcalls.td
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/IR/RuntimeLibcalls.cpp
    A llvm/test/CodeGen/Hexagon/fast-math-libcalls.ll

  Log Message:
  -----------
  DAG: Use fast variants of fast math libcalls

Hexagon currently has an untested global flag to control fast
math variants of libcalls. Add fast variants as explicit libcall
options so this can be a flag based lowering decision, and implement
it. I have no idea what fast math flags the hexagon case requires,
so I picked the maximally potentially relevant set of flags although
this probably is refinable per call. Looking in compiler-rt, I'm not
sure if the fast variants are anything more than aliases.



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