[all-commits] [llvm/llvm-project] acdf1c: [DAG] Add generic expansion for ISD::FCANONICALIZE...

Dominik Steenken via All-commits all-commits at lists.llvm.org
Tue Jul 8 08:12:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acdf1c75269b6c55cf1a994a289595a3a3f41caf
      https://github.com/llvm/llvm-project/commit/acdf1c75269b6c55cf1a994a289595a3a3f41caf
  Author: Dominik Steenken <dost at de.ibm.com>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    A llvm/test/CodeGen/SystemZ/canonicalize-vars.ll

  Log Message:
  -----------
  [DAG] Add generic expansion for ISD::FCANONICALIZE nodes (#142105)

This PR takes the work previously done by @pawan-nirpal-031 on X86 in
#106370, and makes it available in common code. This should enable all
targets to use `__builtin_canonicalize` for all `f(16|32|64|128)` data
types.

Canonicalization is implemented here as multiplication by `1.0`, as
suggested in [the
docs](https://llvm.org/docs/LangRef.html#llvm-canonicalize-intrinsic).



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