[all-commits] [llvm/llvm-project] 056cf9: [DAG] Fold (and X, (bswap/bitreverse (not Y))) -> ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 28 04:53:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 056cf936a730a72db7ad9da8b475814c6bbe03b7
      https://github.com/llvm/llvm-project/commit/056cf936a730a72db7ad9da8b475814c6bbe03b7
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-10-28 (Mon, 28 Oct 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/andnot-patterns.ll

  Log Message:
  -----------
  [DAG] Fold (and X, (bswap/bitreverse (not Y))) -> (and X, (not (bswap/bitreverse Y))) (#112547)

On ANDNOT capable targets we can always do this profitably, without ANDNOT we only attempt this if we don't introduce an additional NOT

Fixes #112425



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