[all-commits] [llvm/llvm-project] 5091a3: [ConstantFold] Special case log1p +/-0.0 (#114635)

Hubert Tong via All-commits all-commits at lists.llvm.org
Sat Nov 2 17:07:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5091a359d9807db8f7d62375696f93fc34226969
      https://github.com/llvm/llvm-project/commit/5091a359d9807db8f7d62375696f93fc34226969
  Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
  Date:   2024-11-02 (Sat, 02 Nov 2024)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/test/Transforms/InstCombine/log1p.ll

  Log Message:
  -----------
  [ConstantFold] Special case log1p +/-0.0 (#114635)

C's Annex F specifies that log1p +/-0.0 returns the input value;
however, this behavior is optional and host C libraries may behave
differently. This change applies the Annex F behavior to constant
folding by LLVM.



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