diff options
author | Nate Begeman <natebegeman@mac.com> | 2009-03-01 23:44:07 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2009-03-01 23:44:07 +0000 |
commit | 1e06eca05d16f2776c9da8f48e198b986b331a75 (patch) | |
tree | b13fbd9be669309965a23f0a8726ca035e8a93d9 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | d7b7d7a6db40ce2d71efb8f875463df101a3889c (diff) | |
download | external_llvm-1e06eca05d16f2776c9da8f48e198b986b331a75.zip external_llvm-1e06eca05d16f2776c9da8f48e198b986b331a75.tar.gz external_llvm-1e06eca05d16f2776c9da8f48e198b986b331a75.tar.bz2 |
Fix a problem with DAGCombine on 64b targets where folding
extracts + build_vector into a shuffle would fail, because the
type of the new build_vector would not be legal. Try harder to
create a legal build_vector type. Note: this will be totally
irrelevant once vector_shuffle no longer takes a build_vector for
shuffle mask.
New:
_foo:
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
subps %xmm1, %xmm1
mulps %xmm0, %xmm1
addps %xmm0, %xmm1
movaps %xmm1, 0
Old:
_foo:
xorps %xmm0, %xmm0
movss %xmm0, %xmm1
xorps %xmm2, %xmm2
unpcklps %xmm1, %xmm2
pshufd $80, %xmm1, %xmm1
unpcklps %xmm1, %xmm2
pslldq $16, %xmm2
pshufd $57, %xmm2, %xmm1
subps %xmm0, %xmm1
mulps %xmm0, %xmm1
addps %xmm0, %xmm1
movaps %xmm1, 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions