[X86] MatchVectorAllEqualTest - add support for icmp(reduce_and(X),-1) allof reductio...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 1 Apr 2023 14:38:38 +0000 (15:38 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 1 Apr 2023 14:38:38 +0000 (15:38 +0100)
commit24780e13e5be1501e34330148137a10fa9965166
treeaef5847d6709a324a7925e93697e726bde45e16f
parentb43b1291f50e5682f5c87b6cee45e4097a5d95ac
[X86] MatchVectorAllEqualTest - add support for icmp(reduce_and(X),-1) allof reduction patterns

Also, improve codegen in LowerVectorAllEqual for X == -1 cases to reduce over sized vector using a AND reduction
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-reduce-and-cmp.ll