[all-commits] [llvm/llvm-project] 9103b7: [X86] Fold MOVMSK(CONCAT(X, Y)) -> MOVMSK(AND/OR(X, ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jan 27 10:29:21 PST 2022


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

  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
    M llvm/test/CodeGen/X86/vector-reduce-or-bool.ll

  Log Message:
  -----------
  [X86] Fold MOVMSK(CONCAT(X,Y)) -> MOVMSK(AND/OR(X,Y)) for all_of/any_of patterns

Makes it easier for later folds and avoids unnecessary 256-bit ops (especially on AVX1-only targets where we miss a lot of integer instructions)




More information about the All-commits mailing list