diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-10 00:19:43 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-10 00:19:43 +0000 |
| commit | 3cbb12c2ed8ff2013d6d881800aecf46f8205813 (patch) | |
| tree | 7f87d730383ad774862695a9badcf2aecde846fa /clang | |
| parent | d6a7e983e2c1e34bf02197bd5b7b561c9ec5bf05 (diff) | |
| download | bcm5719-llvm-3cbb12c2ed8ff2013d6d881800aecf46f8205813.tar.gz bcm5719-llvm-3cbb12c2ed8ff2013d6d881800aecf46f8205813.zip | |
Remove unused function
llvm-svn: 310540
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 44647a6fc55..8bb262b934d 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/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; |

