[all-commits] [llvm/llvm-project] 79ad09: [InstCombine] Preserve fdiv metadata on fneg folds...

Wenju He via All-commits all-commits at lists.llvm.org
Mon Feb 2 16:27:39 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79ad09175ebd1d3e73b237777598862299447155
      https://github.com/llvm/llvm-project/commit/79ad09175ebd1d3e73b237777598862299447155
  Author: Wenju He <wenju.he at intel.com>
  Date:   2026-02-03 (Tue, 03 Feb 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/fneg.ll

  Log Message:
  -----------
  [InstCombine] Preserve fdiv metadata on fneg folds (#179157)

Copy metadata from the original fdiv when folding fneg into fdiv or
hoisting fneg above fdiv. This keeps !fpmath (and other metadata)
intact, preventing !fpmath loss seen in libclc tanpi function. fneg only
flips sign bit, so it does not affect precision.



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