[WebAssembly] Remove the override of haveFastSqrt.
authorDan Gohman <dan433584@gmail.com>
Tue, 8 Dec 2015 03:22:33 +0000 (03:22 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 8 Dec 2015 03:22:33 +0000 (03:22 +0000)
The default implementation in BasicTTI already checks TLI and does
the right thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254993 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h

index ea7044d58834db4d9af74fe296f8d7093e8f963d..356631711921223b25f94b2b76548894fb283505 100644 (file)
@@ -25,8 +25,3 @@ WebAssemblyTTIImpl::getPopcntSupport(unsigned TyWidth) const {
   assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
   return TargetTransformInfo::PSK_FastHardware;
 }
   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;
-}
index 84f9f0e3e55e736beb819903620792fd4ad025f3..26dc388cc9220a255b12dcf4c170ce06001469ea 100644 (file)
@@ -55,7 +55,6 @@ public:
   // TODO: Implement more Scalar TTI for WebAssembly
 
   TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
   // TODO: Implement more Scalar TTI for WebAssembly
 
   TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
-  bool haveFastSqrt(Type *Ty) const;
 
   /// @}
 
 
   /// @}