]> granicus.if.org Git - llvm/commit
[X86][SSE41] Start shuffle combining from ZERO_EXTEND_VECTOR_INREG (PR40685)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 24 Mar 2019 19:06:35 +0000 (19:06 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 24 Mar 2019 19:06:35 +0000 (19:06 +0000)
commit470391222b30ec3e53a39dc581da63c831b187aa
tree2f33034a771adefbf72ed5c83775e64a9fe0732b
parentf4baea281dceff411d61ef109ac2072566459196
[X86][SSE41] Start shuffle combining from ZERO_EXTEND_VECTOR_INREG (PR40685)

Enable SSE41 ZERO_EXTEND_VECTOR_INREG shuffle combines - for the PMOVZX(PSHUFD(V)) -> UNPCKH(V,0) pattern we reduce the shuffles (port5-bottleneck on Intel) at the expense of creating a zero (pxor v,v) and an extra register move - which is a good trade off as these are pretty cheap and in most cases it doesn't increase register pressure.

This also exposed a missed opportunity to use combine to ZERO_EXTEND_VECTOR_INREG with folded loads - even if we're in the float domain.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356864 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/cast-vsel.ll
test/CodeGen/X86/combine-pmuldq.ll
test/CodeGen/X86/combine-shl.ll
test/CodeGen/X86/pmul.ll
test/CodeGen/X86/psubus.ll
test/CodeGen/X86/slow-pmulld.ll
test/CodeGen/X86/vec_int_to_fp.ll
test/CodeGen/X86/vector-idiv-udiv-128.ll
test/CodeGen/X86/vector-pcmp.ll
test/CodeGen/X86/vector-reduce-umax.ll
test/CodeGen/X86/vector-reduce-umin.ll
test/CodeGen/X86/vector-shift-shl-sub128.ll
test/CodeGen/X86/vector-zext.ll