diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp --- a/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp @@ -116,7 +116,6 @@ bool isGlobalAddr(const Value *V) const; bool isLocalAddr(const Value *V) const; - bool isConstantAddr(const Value *V) const; }; static std::pair getMemoryInstrPtrAndType( @@ -336,15 +335,6 @@ return MAI; } -bool AMDGPUPerfHint::isConstantAddr(const Value *V) const { - if (auto PT = dyn_cast(V->getType())) { - unsigned As = PT->getAddressSpace(); - return As == AMDGPUAS::CONSTANT_ADDRESS || - As == AMDGPUAS::CONSTANT_ADDRESS_32BIT; - } - return false; -} - bool AMDGPUPerfHint::MemAccessInfo::isLargeStride( MemAccessInfo &Reference) const {