OSDN Git Service

[InstCombine][MMX] Extend SimplifyDemandedUseBits MOVMSK support to MMX
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 4 Jun 2016 13:42:46 +0000 (13:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 4 Jun 2016 13:42:46 +0000 (13:42 +0000)
commit30f995aa46ead653e629195052c8ce20ab12d1e7
treea8423ae1275ebb2e7464fc1292f9c8bc04985d51
parentf5adc997c205056d78b48785a2b486b0442e712a
[InstCombine][MMX] Extend SimplifyDemandedUseBits MOVMSK support to MMX

Add the MMX implementation to the SimplifyDemandedUseBits SSE/AVX MOVMSK support added in D19614

Requires a minor tweak as llvm.x86.mmx.pmovmskb takes a x86_mmx argument - so we have to be explicit about the implied v8i8 vector type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271789 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
test/Transforms/InstCombine/x86-movmsk.ll