[all-commits] [llvm/llvm-project] 7c25db: [DAG] Fold (and X, (add (not Y), Z)) -> (and X, (n...

Xu Zhang via All-commits all-commits at lists.llvm.org
Mon Jun 16 07:55:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c25db3fbfc63f76b270940e341f267e497e95d9
      https://github.com/llvm/llvm-project/commit/7c25db3fbfc63f76b270940e341f267e497e95d9
  Author: Xu Zhang <simonzgx at gmail.com>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/AArch64/aarch64-bitwisenot-fold.ll
    M llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll

  Log Message:
  -----------
  [DAG] Fold (and X, (add (not Y), Z)) -> (and X, (not (sub Y, Z))). (#141476)

Fixes #140639

---------

Co-authored-by: Simon Pilgrim <llvm-dev at redking.me.uk>



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