[all-commits] [llvm/llvm-project] c692e9: [X86] combineSetCCMOVMSK - fold PTEST(XOR(X, Y), XOR...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Apr 1 10:46:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c692e92dc5d61495118775adda4872148240bac5
      https://github.com/llvm/llvm-project/commit/c692e92dc5d61495118775adda4872148240bac5
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/movmsk-cmp.ll
    M llvm/test/CodeGen/X86/vector-compare-all_of.ll
    M llvm/test/CodeGen/X86/vector-compare-any_of.ll
    M llvm/test/CodeGen/X86/vector-reduce-and-bool.ll

  Log Message:
  -----------
  [X86] combineSetCCMOVMSK - fold PTEST(XOR(X,Y),XOR(X,Y)) instead of PTEST(SUB(X,Y),SUB(X,Y))

Consistently use the PTEST(XOR(X,Y),XOR(X,Y)) pattern for all-vector comparisons




More information about the All-commits mailing list