summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2012-02-12 15:05:31 +0000
committerNadav Rotem <nadav.rotem@intel.com>2012-02-12 15:05:31 +0000
commit34ca89afa880d3a3fd7f968c6c818ad4475665c2 (patch)
treea0b9d79c16d180a263157f044ed2fa0e9fb85bc4 /clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp
parent0b6c613a108f1330e36bf4cef43376d9bbc44654 (diff)
downloadbcm5719-llvm-34ca89afa880d3a3fd7f968c6c818ad4475665c2.tar.gz
bcm5719-llvm-34ca89afa880d3a3fd7f968c6c818ad4475665c2.zip
This patch addresses the problem of poor code generation for the zext
v8i8 -> v8i32 on AVX machines. The codegen often scalarizes ANY_EXTEND nodes. The DAGCombiner has two optimizations that can mitigate the problem. First, if all of the operands of a BUILD_VECTOR node are extracted from an ZEXT/ANYEXT nodes, then it is possible to create a new simplified BUILD_VECTOR which uses UNDEFS/ZERO values to eliminate the scalar ZEXT/ANYEXT nodes. Second, another dag combine optimization lowers BUILD_VECTOR into a shuffle vector instruction. In the case of zext v8i8->v8i32 on AVX, a value in an XMM register is to be shuffled into a wide YMM register. This patch modifes the second optimization and allows the creation of shuffle vectors even when the newly generated vector and the original vector from which we extract the values are of different types. llvm-svn: 150340
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud