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

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jul 9 01:19:28 PDT 2025


  Branch: refs/heads/users/arsenm/dag/use-fast-variants-math-libcalls
  Home:   https://github.com/llvm/llvm-project
  Commit: 83257edb4d088d2ab471b5454b1f799e57a84276
      https://github.com/llvm/llvm-project/commit/83257edb4d088d2ab471b5454b1f799e57a84276
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-07-09 (Wed, 09 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