aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-08 03:22:33 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-08 03:22:33 +0000
commit4a84b7322fb251cd2af65a0526b555e0a2e0714f (patch)
tree72fb7cbac8979cda331198aa380e56a952f34284 /llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
parentce8eca578d6956885b46f1fb85173b1296f33dba (diff)
downloadllvm-4a84b7322fb251cd2af65a0526b555e0a2e0714f.zip
llvm-4a84b7322fb251cd2af65a0526b555e0a2e0714f.tar.gz
llvm-4a84b7322fb251cd2af65a0526b555e0a2e0714f.tar.bz2
[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/WebAssemblyTargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
index ea7044d..3566317 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;
-}