From ecdef4b2066533fd9e1250aa670a858a537e8da5 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 10 Aug 2017 00:19:43 +0000 Subject: [PATCH] Remove unused function git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310540 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetInfo.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 44647a6fc5..8bb262b934 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -7381,8 +7381,6 @@ class AMDGPUABIInfo final : public DefaultABIInfo { private: static const unsigned MaxNumRegsForArgsRet = 16; - bool shouldReturnTypeInRegister(QualType Ty, - ASTContext &Context) const; unsigned numRegsForType(QualType Ty) const; bool isHomogeneousAggregateBaseType(QualType Ty) const override; @@ -7412,13 +7410,6 @@ bool AMDGPUABIInfo::isHomogeneousAggregateSmallEnough( return Members * NumRegs <= MaxNumRegsForArgsRet; } -/// Check whether the type is small enough to consider passing directly in -/// registers. -bool AMDGPUABIInfo::shouldReturnTypeInRegister(QualType Ty, - ASTContext &Ctx) const { - return ((Ctx.getTypeSize(Ty) + 31) / 32) <= MaxNumRegsForArgsRet; -} - /// Estimate number of registers the type will use when passed in registers. unsigned AMDGPUABIInfo::numRegsForType(QualType Ty) const { unsigned NumRegs = 0; -- 2.40.0