summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-02-09 11:50:19 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-02-09 11:50:19 +0000
commit563e23e66e5fd383147f5e0d9b4fa67f265a422a (patch)
treec66ae478fe531c34f8f6a4d172e17671c8ad32e7 /llvm/docs/CommandGuide
parent4200948c5a6e45a4a076378651f40f08dfdc33e1 (diff)
downloadbcm5719-llvm-563e23e66e5fd383147f5e0d9b4fa67f265a422a.tar.gz
bcm5719-llvm-563e23e66e5fd383147f5e0d9b4fa67f265a422a.zip
[X86][SSE] Attempt to break register dependencies during lowerBuildVector
LowerBuildVectorv16i8/LowerBuildVectorv8i16 insert values into a UNDEF vector if the build vector doesn't contain any zero elements, resulting in register dependencies with a previous use of the register. This patch attempts to break the register dependency by either always zeroing the vector before hand or (if we're inserting to the 0'th element) by using VZEXT_MOVL(SCALAR_TO_VECTOR(i32 AEXT(Elt))) which lowers to (V)MOVD and performs a similar function. Additionally (V)MOVD is a shorter instruction than PINSRB/PINSRW. We already do something similar for SSE41 PINSRD. On pre-SSE41 LowerBuildVectorv16i8 we go a little further and use VZEXT_MOVL(SCALAR_TO_VECTOR(i32 ZEXT(Elt))) if the build vector contains zeros to avoid the vector zeroing at the cost of a scalar zero extension, which can probably be brought over to the other cases in a future patch in some cases (load folding etc.) Differential Revision: https://reviews.llvm.org/D29720 llvm-svn: 294581
Diffstat (limited to 'llvm/docs/CommandGuide')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud