[X86] Match bitcast of vxi1 to pmovmsk
Summary:
Add an early combine to match patterns such as:
(i16 bitcast (v16i1 x))
->
(i16 movmsk (v16i8 sext (v16i1 x)))
This combine needs to happen early enough before
type-legalization scalarizes the result of the setcc.
Reviewers: igorb, craig.topper, RKSimon
Subscribers: delena, llvm-commits
Differential Revision: https://reviews.llvm.org/D33311
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304406 91177308-0d34-0410-b5e6-96231b3b80d8
6 files changed