summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-03-31 16:32:11 +0000
committerSanjay Patel <spatel@rotateright.com>2015-03-31 16:32:11 +0000
commit2ae9943881389a83fdc043d5b8ebb7009d053158 (patch)
treed6b842ef6938f8fc8277faec8678e05ead752ec6 /clang/lib/CodeGen/CGBlocks.cpp
parent0e1f11ffe0afd0604bbee218ce74b915c732b678 (diff)
downloadbcm5719-llvm-2ae9943881389a83fdc043d5b8ebb7009d053158.tar.gz
bcm5719-llvm-2ae9943881389a83fdc043d5b8ebb7009d053158.zip
[X86, AVX] try to lowerVectorShuffleAsElementInsertion() for all 256-bit vector sub-types
I suggested this change in D7898 (http://llvm.org/viewvc/llvm-project?view=revision&revision=231354) It improves the v4i64 case although not optimally. This AVX codegen: vmovq {{.*#+}} xmm0 = mem[0],zero vxorpd %ymm1, %ymm1, %ymm1 vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1,2,3] Becomes: vmovsd {{.*#+}} xmm0 = mem[0],zero Unfortunately, this doesn't completely solve PR22685. There are still at least 2 problems under here: We're not handling v32i8 / v16i16. We're not getting the FP / int domains right for instruction selection. But since this patch alone appears to do no harm, reduces code duplication, and helps v4i64, I'm submitting this patch ahead of fixing the above. Differential Revision: http://reviews.llvm.org/D8341 llvm-svn: 233704
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud