[X86][SSE] combineSetCCMOVMSK - add initial support for allof patterns.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 7 Jun 2020 14:59:12 +0000 (15:59 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 7 Jun 2020 15:10:13 +0000 (16:10 +0100)
commit3a28ae091be754d315bcee9b7596429e38df5e2e
tree35b8d489f1ee95e69f58f047873c4ba1d45f5b1e
parentdc52ce424bb1818b3270e20927447bf17e062e66
[X86][SSE] combineSetCCMOVMSK - add initial support for allof patterns.

Handle MOVMSK 'allof' comparisons (X86ISD::SUB X, AllBitsMask) as well as 'anyof' patterns.

This allows us to handle these patterns in the MOVMSK(BITCAST(X)) pattern to fix PR37087.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/combine-movmsk-avx.ll
llvm/test/CodeGen/X86/combine-movmsk.ll