]> granicus.if.org Git - llvm/commit
[X86] Allow combinevxi1Bitcast to use pmovmskb on avx512 targets if the input is...
authorCraig Topper <craig.topper@intel.com>
Sat, 5 Jan 2019 21:40:07 +0000 (21:40 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 5 Jan 2019 21:40:07 +0000 (21:40 +0000)
commit1b1457fd624d6ada42b2cb5ec1d925b76da75e37
tree4b6f970ff9dfdc850794381aa08a3305b4d76cd9
parentf04e8d9380cd7499ac90b3d5ca6bf056e1a1ddbb
[X86] Allow combinevxi1Bitcast to use pmovmskb on avx512 targets if the input is a truncate from v16i8/v32i8.

This is especially helpful on targets without avx512bw since we don't have a good way to convert from v16i8/v32i8 to v16i1/v32i1 for the truncate anyway. If we're just going to convert it to a GPR we might as well use pmovmskb to accomplish both.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-ext.ll
test/CodeGen/X86/avx512-schedule.ll
test/CodeGen/X86/bitcast-and-setcc-128.ll
test/CodeGen/X86/bitcast-and-setcc-256.ll
test/CodeGen/X86/bitcast-setcc-128.ll
test/CodeGen/X86/bitcast-setcc-256.ll
test/CodeGen/X86/broadcastm-lowering.ll
test/CodeGen/X86/movmsk-cmp.ll