This is an archive of the discontinued LLVM Phabricator instance.

[X86][SSE] MOVMSK only uses the sign bit from each vector element
ClosedPublic

Authored by RKSimon on Dec 12 2017, 9:59 AM.

Details

Summary

Pass the input vector through SimplifyDemandedBits as we only need the sign bit from each vector element of MOVMSK

We'd probably get more hits if SimplifyDemandedBits was better at handling vectors...

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Dec 12 2017, 9:59 AM
This revision is now accepted and ready to land.Dec 12 2017, 10:05 AM
This revision was automatically updated to reflect the committed changes.