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...
Paths
| Differential D41119
[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
Event TimelineThis revision is now accepted and ready to land.Dec 12 2017, 10:05 AM Closed by commit rL320570: [X86][SSE] MOVMSK only uses the sign bit from each vector element (authored by RKSimon). · Explain WhyDec 13 2017, 3:44 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 126567 lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/setcc-lowering.ll
|