[ARM][ISel] Improve the lowering of vector loads.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 23 Jul 2013 22:34:47 +0000 (22:34 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 23 Jul 2013 22:34:47 +0000 (22:34 +0000)
commit0f2fe74aaf47925fd1cb7aa1329244ab550096fc
tree2ce464a23a8317f19d06fcd354c036e8cb9143f1
parent402ccb5d6676599ac15a4505f0e7fa910398ce40
[ARM][ISel] Improve the lowering of vector loads.

When vectors are built from a single value, the ARM lowering issues a
scalar_to_vector node.
This node is then always morphed into a move from the general purpose unit to
the vector unit.
When the value comes from a load, this can be simplified into a vector load to
the right lane.

This patch changes the lowering of insert_vector_elt to expose a vector
friendly pattern in this situation.

This is a step toward fixing <rdar://problem/14170854>.

llvm-svn: 186999
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/ARM/vector-DAGCombine.ll