[x86] Fold extract_vector_elt of a load into the Load's address computation.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 29 May 2014 01:42:45 +0000 (01:42 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 29 May 2014 01:42:45 +0000 (01:42 +0000)
commit11ef9456a8062ba1db499f916661dca7c7dd6529
tree1d3c18fc354414d6e857daea42e49b04af27fdcd
parentbf933548ba94e8029aa3c0d12b8e6a551fc32322
[x86] Fold extract_vector_elt of a load into the Load's address computation.

An address only use of an extract element of a load can be simplified to a
load. Without this the result of the extract element is spilled to the
stack so that an address is available.

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