diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-04-14 03:22:20 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-04-14 03:22:20 +0000 |
commit | f7eaf29cf70a545f5b717c638db83ba6e8b6b3c5 (patch) | |
tree | 0255d593fb604b50db8fea3a3f87a6871cd8f161 /lib/Transforms/Vectorize/VecUtils.h | |
parent | ef596e1a80a9790efbc905c57b4e06ba6addb95a (diff) | |
download | llvm-f7eaf29cf70a545f5b717c638db83ba6e8b6b3c5.tar.gz llvm-f7eaf29cf70a545f5b717c638db83ba6e8b6b3c5.tar.bz2 llvm-f7eaf29cf70a545f5b717c638db83ba6e8b6b3c5.tar.xz |
SLPVectorizer: add initial support for reduction variable vectorization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/VecUtils.h')
-rw-r--r-- | lib/Transforms/Vectorize/VecUtils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Vectorize/VecUtils.h b/lib/Transforms/Vectorize/VecUtils.h index 808fb10f9f..f865236ff8 100644 --- a/lib/Transforms/Vectorize/VecUtils.h +++ b/lib/Transforms/Vectorize/VecUtils.h @@ -66,6 +66,9 @@ struct BoUpSLP { /// \returns true if the basic block was modified. bool vectorizeStores(StoreList &Stores, int costThreshold); + /// \brief Vectorize a group of scalars into a vector tree. + void vectorizeArith(ValueList &Operands); + private: /// \returns This method contains the recursive part of getTreeCost. int getTreeCost_rec(ValueList &VL, unsigned Depth); |