summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-01-05 10:16:02 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-01-05 10:16:02 +0000
commit21b3c586ab97a7ae43028c0e98c53d363363801b (patch)
treeaa54cad949de7a3e8eec25577735f0aa6d6a1c1e /llvm/lib/Transforms/Vectorize/LoopVectorize.h
parentcf569a8cdffda84a5fc1271f9c330097e780a951 (diff)
downloadbcm5719-llvm-21b3c586ab97a7ae43028c0e98c53d363363801b.tar.gz
bcm5719-llvm-21b3c586ab97a7ae43028c0e98c53d363363801b.zip
Switch the loop vectorizer from VTTI to just use TTI directly.
llvm-svn: 171620
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.h')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.h b/llvm/lib/Transforms/Vectorize/LoopVectorize.h
index 2333b2bcf94..324d4253020 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.h
+++ b/llvm/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
OpenPOWER on IntegriCloud