aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-08-22 12:56:54 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-08-22 12:56:54 +0000
commit2279e595737524c6133fddad91634a28c12cd07c (patch)
treea37d3d4c092eb008896bf2ab08b04a3a7cb3f579 /llvm/lib/CodeGen/MachineInstr.cpp
parentf0ed16eae58479155639e601bbfbff961f2cc49a (diff)
downloadllvm-2279e595737524c6133fddad91634a28c12cd07c.zip
llvm-2279e595737524c6133fddad91634a28c12cd07c.tar.gz
llvm-2279e595737524c6133fddad91634a28c12cd07c.tar.bz2
[X86][SSE] Avoid specifying unused arguments in SHUFPD lowering
As discussed on PR26491, we are missing the opportunity to make use of the smaller MOVHLPS instruction because we set both arguments of a SHUFPD when using it to lower a single input shuffle. This patch sets the lowered argument to UNDEF if that shuffle element is undefined. This in turn makes it easier for target shuffle combining to decode UNDEF shuffle elements, allowing combines to MOVHLPS to occur. A fix to match against MOVHPD stores was necessary as well. This builds on the improved MOVLHPS/MOVHLPS lowering and memory folding support added in D16956 Adding similar support for SHUFPS will have to wait until have better support for target combining of binary shuffles. Differential Revision: https://reviews.llvm.org/D23027 llvm-svn: 279430
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions