[all-commits] [llvm/llvm-project] 835a73: [X86] Add test showing incorrect movmsk->ptest fold

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jan 28 05:23:14 PST 2022


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

  Changed paths:
    M llvm/test/CodeGen/X86/combine-movmsk.ll

  Log Message:
  -----------
  [X86] Add test showing incorrect movmsk->ptest fold

We can't fold MOVMSK(BITCAST(PCMPEQ(X,0))) -> PTESTZ(X,X) if we're not testing every element comparison


  Commit: 2a13beaa70beb91cc4ce2e804b36f21d0e760172
      https://github.com/llvm/llvm-project/commit/2a13beaa70beb91cc4ce2e804b36f21d0e760172
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/combine-movmsk.ll

  Log Message:
  -----------
  [X86] combineSetCCMOVMSK - don't fold MOVMSK(BITCAST(PCMPEQ(X,0))) -> PTESTZ(X,X) if we're not testing every element comparison


Compare: https://github.com/llvm/llvm-project/compare/49178a2c4ee3...2a13beaa70be


More information about the All-commits mailing list