[all-commits] [llvm/llvm-project] b0b5c5: [X86] Refactor MatchVectorAllZeroTest -> MatchVect...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Apr 1 03:08:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0b5c546e5c9bc4ad1fbd781146046f3845ebb07
      https://github.com/llvm/llvm-project/commit/b0b5c546e5c9bc4ad1fbd781146046f3845ebb07
  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/avx512-mask-op.ll
    M llvm/test/CodeGen/X86/movmsk-cmp.ll
    M llvm/test/CodeGen/X86/vector-compare-all_of.ll
    M llvm/test/CodeGen/X86/vector-reduce-and-bool.ll

  Log Message:
  -----------
  [X86] Refactor MatchVectorAllZeroTest -> MatchVectorAllEqualTest

Refactor MatchVectorAllZeroTest to work with allof/anyof/noneof comparisons with -1 as well as 0, and use it handle icmp(bitcast(icmp_eq(X,Y)),-1) reduction patterns.

We're still missing test coverage for other other reduction types, so have kept these limited to icmp X,0 for now.




More information about the All-commits mailing list