summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Analysis/TargetTransformInfo.h9
-rw-r--r--llvm/include/llvm/Analysis/TargetTransformInfoImpl.h2
-rw-r--r--llvm/include/llvm/CodeGen/BasicTTIImpl.h4
-rw-r--r--llvm/lib/Analysis/TargetTransformInfo.cpp4
4 files changed, 0 insertions, 19 deletions
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index 1ebbaa03475..98458f1c3f3 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -337,11 +337,6 @@ public:
/// by referencing its sub-register AX.
bool isTruncateFree(Type *Ty1, Type *Ty2) const;
- /// \brief Return true if it's free to zero extend a value of type Ty1 to type
- /// Ty2. e.g. on x86-64, all instructions that define 32-bit values implicit
- /// zero-extend the result out to 64 bits.
- bool isZExtFree(Type *Ty1, Type *Ty2) const;
-
/// \brief Return true if it is profitable to hoist instruction in the
/// then/else to before if.
bool isProfitableToHoist(Instruction *I) const;
@@ -581,7 +576,6 @@ public:
int64_t BaseOffset, bool HasBaseReg,
int64_t Scale, unsigned AddrSpace) = 0;
virtual bool isTruncateFree(Type *Ty1, Type *Ty2) = 0;
- virtual bool isZExtFree(Type *Ty1, Type *Ty2) = 0;
virtual bool isProfitableToHoist(Instruction *I) = 0;
virtual bool isTypeLegal(Type *Ty) = 0;
virtual unsigned getJumpBufAlignment() = 0;
@@ -721,9 +715,6 @@ public:
bool isTruncateFree(Type *Ty1, Type *Ty2) override {
return Impl.isTruncateFree(Ty1, Ty2);
}
- bool isZExtFree(Type *Ty1, Type *Ty2) override {
- return Impl.isZExtFree(Ty1, Ty2);
- }
bool isProfitableToHoist(Instruction *I) override {
return Impl.isProfitableToHoist(I);
}
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 8d5d2a71e42..415a85e9906 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -228,8 +228,6 @@ public:
bool isTruncateFree(Type *Ty1, Type *Ty2) { return false; }
- bool isZExtFree(Type *Ty1, Type *Ty2) { return false; }
-
bool isProfitableToHoist(Instruction *I) { return true; }
bool isTypeLegal(Type *Ty) { return false; }
diff --git a/llvm/include/llvm/CodeGen/BasicTTIImpl.h b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
index 3c01bcfbce5..6eb4bb26c9b 100644
--- a/llvm/include/llvm/CodeGen/BasicTTIImpl.h
+++ b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
@@ -143,10 +143,6 @@ public:
return getTLI()->isTruncateFree(Ty1, Ty2);
}
- bool isZExtFree(Type *Ty1, Type *Ty2) const {
- return getTLI()->isZExtFree(Ty1, Ty2);
- }
-
bool isProfitableToHoist(Instruction *I) {
return getTLI()->isProfitableToHoist(I);
}
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp
index f82af757125..c2d5c88e641 100644
--- a/llvm/lib/Analysis/TargetTransformInfo.cpp
+++ b/llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -144,10 +144,6 @@ bool TargetTransformInfo::isTruncateFree(Type *Ty1, Type *Ty2) const {
return TTIImpl->isTruncateFree(Ty1, Ty2);
}
-bool TargetTransformInfo::isZExtFree(Type *Ty1, Type *Ty2) const {
- return TTIImpl->isZExtFree(Ty1, Ty2);
-}
-
bool TargetTransformInfo::isProfitableToHoist(Instruction *I) const {
return TTIImpl->isProfitableToHoist(I);
}
OpenPOWER on IntegriCloud