summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAttr.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2014-09-22 18:54:01 +0000
committerSanjay Patel <spatel@rotateright.com>2014-09-22 18:54:01 +0000
commit7939d7229d374b31c6237718d69c3c0bfa0846a8 (patch)
treed6f8518ad25a9dda028cb7c85519d291a8147729 /clang/lib/Sema/SemaAttr.cpp
parent869c0019b11546fc1ed191834cd5d2d4ae9ffc2a (diff)
downloadbcm5719-llvm-7939d7229d374b31c6237718d69c3c0bfa0846a8.tar.gz
bcm5719-llvm-7939d7229d374b31c6237718d69c3c0bfa0846a8.zip
Use broadcasts to optimize overall size when loading constant splat vectors (x86-64 with AVX or AVX2).
We generate broadcast instructions on CPUs with AVX2 to load some constant splat vectors. This patch should preserve all existing behavior with regular optimization levels, but also use splats whenever possible when optimizing for *size* on any CPU with AVX or AVX2. The tradeoff is up to 5 extra instruction bytes for the broadcast instruction to save at least 8 bytes (up to 31 bytes) of constant pool data. Differential Revision: http://reviews.llvm.org/D5347 llvm-svn: 218263
Diffstat (limited to 'clang/lib/Sema/SemaAttr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud