[all-commits] [llvm/llvm-project] 1f930c: [X86] Fold not(pcmpeq(and(X, CstPow2), 0)) -> pcmpeq...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jan 26 07:14:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f930cf894ccb086ad77ca70b48edb1b4ed092c4
      https://github.com/llvm/llvm-project/commit/1f930cf894ccb086ad77ca70b48edb1b4ed092c4
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/icmp-pow2-mask.ll

  Log Message:
  -----------
  [X86] Fold not(pcmpeq(and(X,CstPow2),0)) -> pcmpeq(and(X,CstPow2),CstPow2) (REAPPLIED)

Reapply b9483d30a7d7a0650a0e83c75fcb9ab4932f475a with fix (typo - wasn't ensuring icmp vs zero)

Fixes #78888




More information about the All-commits mailing list