[all-commits] [llvm/llvm-project] dba3df: [InstCombine] Fold isnan idioms (#101510)

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Fri Aug 2 06:21:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dba3dfa2bdbf8924bf16efcf896664fb91d38295
      https://github.com/llvm/llvm-project/commit/dba3dfa2bdbf8924bf16efcf896664fb91d38295
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/fpclass-check-idioms.ll

  Log Message:
  -----------
  [InstCombine] Fold isnan idioms (#101510)

Folds `(icmp ne ((bitcast X) & FractionBits), 0) & (icmp eq ((bitcast X)
& ExpBits), ExpBits) -> fcmp uno X, 0.0` and
`(icmp eq ((bitcast X) & FractionBits), 0) | (icmp ne ((bitcast X) &
ExpBits), ExpBits) -> fcmp ord X, 0.0`

Alive2: https://alive2.llvm.org/ce/z/mrLn_x



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