diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-12-08 03:22:33 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-12-08 03:22:33 +0000 |
commit | 4a84b7322fb251cd2af65a0526b555e0a2e0714f (patch) | |
tree | 72fb7cbac8979cda331198aa380e56a952f34284 /llvm/lib/Target/WebAssembly | |
parent | ce8eca578d6956885b46f1fb85173b1296f33dba (diff) | |
download | bcm5719-llvm-4a84b7322fb251cd2af65a0526b555e0a2e0714f.tar.gz bcm5719-llvm-4a84b7322fb251cd2af65a0526b555e0a2e0714f.zip |
[WebAssembly] Remove the override of haveFastSqrt.
The default implementation in BasicTTI already checks TLI and does
the right thing.
llvm-svn: 254993
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp index ea7044d5883..35663171192 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp @@ -25,8 +25,3 @@ WebAssemblyTTIImpl::getPopcntSupport(unsigned TyWidth) const { assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); return TargetTransformInfo::PSK_FastHardware; } - -bool WebAssemblyTTIImpl::haveFastSqrt(Type *Ty) const { - assert(Ty->isFPOrFPVectorTy() && "Ty must be floating point"); - return true; -} diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h index 84f9f0e3e55..26dc388cc92 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h @@ -55,7 +55,6 @@ public: // TODO: Implement more Scalar TTI for WebAssembly TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const; - bool haveFastSqrt(Type *Ty) const; /// @} |