[all-commits] [llvm/llvm-project] c660a2: [X86] Fold ANDNP(X, NOT(Y)) -> NOT(OR(X, Y))

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jul 13 08:58:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c660a2f0ab1297b178fd06853c4991d0f07d8fa0
      https://github.com/llvm/llvm-project/commit/c660a2f0ab1297b178fd06853c4991d0f07d8fa0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-07-13 (Thu, 13 Jul 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/bool-ext-inc.ll
    M llvm/test/CodeGen/X86/icmp-abs-C-vec.ll
    M llvm/test/CodeGen/X86/icmp-pow2-diff.ll
    M llvm/test/CodeGen/X86/mul-cmp.ll
    M llvm/test/CodeGen/X86/sat-add.ll
    M llvm/test/CodeGen/X86/setcc-logic.ll
    M llvm/test/CodeGen/X86/srem-seteq-vec-nonsplat.ll
    M llvm/test/CodeGen/X86/sshl_sat_vec.ll
    M llvm/test/CodeGen/X86/unfold-masked-merge-vector-variablemask-const.ll
    M llvm/test/CodeGen/X86/vsplit-and.ll

  Log Message:
  -----------
  [X86] Fold ANDNP(X,NOT(Y)) -> NOT(OR(X,Y))

Removing the x86-specific node helps further folding and improves commutativity




More information about the All-commits mailing list