[X86] combineSetCCMOVMSK - fold PTEST(XOR(X,Y),XOR(X,Y)) instead of PTEST(SUB(X,Y...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 1 Apr 2023 17:45:53 +0000 (18:45 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 1 Apr 2023 17:45:53 +0000 (18:45 +0100)
commitc692e92dc5d61495118775adda4872148240bac5
treea1be9fa08405edae3b121eb31b329048b1274f98
parentfeb585e7d62ce92fcd8334abde4a84ee0301dcd3
[X86] combineSetCCMOVMSK - fold PTEST(XOR(X,Y),XOR(X,Y)) instead of PTEST(SUB(X,Y),SUB(X,Y))

Consistently use the PTEST(XOR(X,Y),XOR(X,Y)) pattern for all-vector comparisons
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/movmsk-cmp.ll
llvm/test/CodeGen/X86/vector-compare-all_of.ll
llvm/test/CodeGen/X86/vector-compare-any_of.ll
llvm/test/CodeGen/X86/vector-reduce-and-bool.ll