[all-commits] [llvm/llvm-project] fe0a85: [X86][SSE] Fold MOVMSK(PCMPEQ(X, 0)) == -1 -> PTEST...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jun 18 07:39:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fe0a85faf49fd8bc2e26bf92dc7cf96955b31646
      https://github.com/llvm/llvm-project/commit/fe0a85faf49fd8bc2e26bf92dc7cf96955b31646
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

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

  Log Message:
  -----------
  [X86][SSE] Fold MOVMSK(PCMPEQ(X,0)) == -1 -> PTESTZ(X,X)

Allow combineSetCCMOVMSK to handle 'allof' X == 0 patterns to be replaced with PTESTZ

This is a preliminary patch before properly handling PR35129




More information about the All-commits mailing list