diff options
author | Matthew Simpson <mssimpso@codeaurora.org> | 2016-01-14 20:46:27 +0000 |
---|---|---|
committer | Matthew Simpson <mssimpso@codeaurora.org> | 2016-01-14 20:46:27 +0000 |
commit | 791fd160c351fcfac1b4693f06499dde43175318 (patch) | |
tree | dbb5a6bce53f9f7b3c1658073df7a91fe5f042af /clang/lib/CodeGen/CGObjC.cpp | |
parent | c58a06d7394925b95fa0f3d7d96b3629c92cd4c7 (diff) | |
download | bcm5719-llvm-791fd160c351fcfac1b4693f06499dde43175318.tar.gz bcm5719-llvm-791fd160c351fcfac1b4693f06499dde43175318.zip |
[SLP] Vectorize the index computations of getelementptr instructions.
This patch seeds the SLP vectorizer with getelementptr indices. The primary
motivation in doing so is to vectorize gather-like idioms beginning with
consecutive loads (e.g., g[a[0] - b[0]] + g[a[1] - b[1]] + ...). While these
cases could be vectorized with a top-down phase, seeding the existing bottom-up
phase with the index computations avoids the complexity, compile-time, and
phase ordering issues associated with a full top-down pass. Only bundles of
single-index getelementptrs with non-constant differences are considered for
vectorization.
Differential Revision: http://reviews.llvm.org/D14829
llvm-svn: 257800
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
0 files changed, 0 insertions, 0 deletions