[all-commits] [llvm/llvm-project] 6c86b7: [ValueTracking][InstCombine] Generalize ignoreSign...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Wed May 28 04:18:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c86b7d7d8bc0f77242e938e68c0325acc7f04c3
      https://github.com/llvm/llvm-project/commit/6c86b7d7d8bc0f77242e938e68c0325acc7f04c3
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/fabs.ll

  Log Message:
  -----------
  [ValueTracking][InstCombine] Generalize ignoreSignBitOfZero/NaN to handle more cases (#141015)

This patch was originally part of
https://github.com/llvm/llvm-project/pull/139861. It generalizes
`ignoreSignBitOfZero/NaN` to handle more instructions/intrinsics.

BTW, I find it mitigates performance regressions caused by
https://github.com/llvm/llvm-project/pull/141010 (IR diff
https://github.com/dtcxzyw/llvm-opt-benchmark/pull/2365/files). We don't
need to propagate FMF from fcmp into select, since we can infer demanded
properties from the user of select.



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