[all-commits] [llvm/llvm-project] 201489: [SelectionDAG] Remove `UnsafeFPMath` in `visitFP_R...

paperchalice via All-commits all-commits at lists.llvm.org
Fri Aug 22 04:46:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2014890c09b18d50fed401b2657c6fdfab9c58fb
      https://github.com/llvm/llvm-project/commit/2014890c09b18d50fed401b2657c6fdfab9c58fb
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2025-08-22 (Fri, 22 Aug 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/fp-double-rounding.ll

  Log Message:
  -----------
  [SelectionDAG] Remove `UnsafeFPMath` in `visitFP_ROUND` (#154768)

Remove `UnsafeFPMath` in `visitFP_ROUND` part, it blocks some bugfixes
related to clang and the ultimate goal is to remove `resetTargetOptions`
method in `TargetMachine`, see FIXME in `resetTargetOptions`.
See also
https://discourse.llvm.org/t/rfc-honor-pragmas-with-ffp-contract-fast

https://discourse.llvm.org/t/allowfpopfusion-vs-sdnodeflags-hasallowcontract

Now all UnsafeFPMath uses are eliminated in LLVMCodeGen



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