[X86][SSE] Add LowerVectorAllZero helper for checking if all bits of a vector are...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 15 Jun 2020 14:54:12 +0000 (15:54 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 15 Jun 2020 14:54:38 +0000 (15:54 +0100)
commitcb8a0ba829665a9e2b534e2b6ecc3ca94f9a3bc5
tree3dbadd8f132dc369e6242327264071d163962a0c
parent57c9dc0521ab7ed7fbff0a25da16312e5a410e66
[X86][SSE] Add LowerVectorAllZero helper for checking if all bits of a vector are zero.

Pull the lowering code out of LowerVectorAllZeroTest (and rename it MatchVectorAllZeroTest).

We should be able to reuse this in combineVectorSizedSetCCEquality as well.

Another cleanup to simplify D81547.
llvm/lib/Target/X86/X86ISelLowering.cpp