r310540 - Remove unused function
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 9 17:19:43 PDT 2017
Author: arsenm
Date: Wed Aug 9 17:19:43 2017
New Revision: 310540
URL: http://llvm.org/viewvc/llvm-project?rev=310540&view=rev
Log:
Remove unused function
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=310540&r1=310539&r2=310540&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Wed Aug 9 17:19:43 2017
@@ -7381,8 +7381,6 @@ class AMDGPUABIInfo final : public Defau
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::isHomogeneousAggrega
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;
More information about the cfe-commits
mailing list