OSDN Git Service

[DAG] Improve legalization of INSERT_SUBVECTOR
authorMichael Kuperstein <mkuper@google.com>
Wed, 1 Jun 2016 20:49:35 +0000 (20:49 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 1 Jun 2016 20:49:35 +0000 (20:49 +0000)
commitd99a2e3ae26cbabd41aed962d825a07f37615b01
treea027aa5057f7c905052bd819c0d9826f5d119cd2
parentaec5010b2703cf394363930e129b80ea8df6852e
[DAG] Improve legalization of INSERT_SUBVECTOR

When the index is known to be constant 0, insert directly into the the low half,
instead of spilling, performing the insert in-memory, and reloading.

Differential Revision: http://reviews.llvm.org/D20763

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271428 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
test/CodeGen/X86/sad.ll