[PATCH] D127959: [AMDGPU][NFC] Remove isConstantAddr
Liao Chunyu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 17:49:37 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6181c192837d: [AMDGPU][NFC] Remove isConstantAddr (authored by liaolucy).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127959/new/
https://reviews.llvm.org/D127959
Files:
llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
+++ 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<const Value *, const Type *> getMemoryInstrPtrAndType(
@@ -336,15 +335,6 @@
return MAI;
}
-bool AMDGPUPerfHint::isConstantAddr(const Value *V) const {
- if (auto PT = dyn_cast<PointerType>(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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127959.437758.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220617/db57199e/attachment.bin>
More information about the llvm-commits
mailing list