diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-01-05 10:16:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-01-05 10:16:02 +0000 |
commit | be73c7b903647221fbcaae302d31e90f53583040 (patch) | |
tree | b748c226110e313c6eefd121514de583690aab69 /lib/Transforms/Vectorize/LoopVectorize.h | |
parent | 194bd71b069abd7b3bd278b1df840f9cc9a4161a (diff) |
Switch the loop vectorizer from VTTI to just use TTI directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.h')
-rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.h b/lib/Transforms/Vectorize/LoopVectorize.h index 2333b2bcf9..324d425302 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.h +++ b/lib/Transforms/Vectorize/LoopVectorize.h @@ -76,7 +76,7 @@ namespace llvm { // Forward declarations. class LoopVectorizationLegality; class LoopVectorizationCostModel; -class VectorTargetTransformInfo; +class TargetTransformInfo; /// InnerLoopVectorizer vectorizes loops which contain only one basic /// block to a specified vectorization factor (VF). @@ -468,18 +468,18 @@ private: /// LoopVectorizationCostModel - estimates the expected speedups due to /// vectorization. -/// In many cases vectorization is not profitable. This can happen because -/// of a number of reasons. In this class we mainly attempt to predict -/// the expected speedup/slowdowns due to the supported instruction set. -/// We use the VectorTargetTransformInfo to query the different backends -/// for the cost of different operations. +/// In many cases vectorization is not profitable. This can happen because of +/// a number of reasons. In this class we mainly attempt to predict the +/// expected speedup/slowdowns due to the supported instruction set. We use the +/// TargetTransformInfo to query the different backends for the cost of +/// different operations. class LoopVectorizationCostModel { public: /// C'tor. LoopVectorizationCostModel(Loop *Lp, ScalarEvolution *Se, LoopInfo *Li, LoopVectorizationLegality *Leg, - const VectorTargetTransformInfo *Vtti): - TheLoop(Lp), SE(Se), LI(Li), Legal(Leg), VTTI(Vtti) { } + const TargetTransformInfo *Tti): + TheLoop(Lp), SE(Se), LI(Li), Legal(Leg), TTI(Tti) { } /// \return The most profitable vectorization factor. /// This method checks every power of two up to VF. If UserVF is not ZERO @@ -532,7 +532,7 @@ private: /// Vectorization legality. LoopVectorizationLegality *Legal; /// Vector target information. - const VectorTargetTransformInfo *VTTI; + const TargetTransformInfo *TTI; }; }// namespace llvm |