summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2014-12-23 08:59:45 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2014-12-23 08:59:45 +0000
commitf4536ea6e8743c34600d88d4329cd0e859b6b19a (patch)
tree8022a5c95232d0b14ad17aa4b983ee36c93574c7 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent04b16b51ec2903f1be8a4f9297a24e73b0bbda52 (diff)
downloadbcm5719-llvm-f4536ea6e8743c34600d88d4329cd0e859b6b19a.tar.gz
bcm5719-llvm-f4536ea6e8743c34600d88d4329cd0e859b6b19a.zip
[DagCombine] Improve DAGCombiner BUILD_VECTOR when it has two sources of elements
This partially fixes PR21943. For AVX, we go from: vmovq (%rsi), %xmm0 vmovq (%rdi), %xmm1 vpermilps $-27, %xmm1, %xmm2 ## xmm2 = xmm1[1,1,2,3] vinsertps $16, %xmm2, %xmm1, %xmm1 ## xmm1 = xmm1[0],xmm2[0],xmm1[2,3] vinsertps $32, %xmm0, %xmm1, %xmm1 ## xmm1 = xmm1[0,1],xmm0[0],xmm1[3] vpermilps $-27, %xmm0, %xmm0 ## xmm0 = xmm0[1,1,2,3] vinsertps $48, %xmm0, %xmm1, %xmm0 ## xmm0 = xmm1[0,1,2],xmm0[0] To the expected: vmovq (%rdi), %xmm0 vmovhpd (%rsi), %xmm0, %xmm0 retq Fixing this for AVX2 is still open. Differential Revision: http://reviews.llvm.org/D6749 llvm-svn: 224759
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud