[llvm] 306b08c - [AMDGPU] Remove unused SITargetLowering::isMemOpUniform
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 05:21:08 PDT 2024
Author: Jay Foad
Date: 2024-09-10T13:11:55+01:00
New Revision: 306b08c3a9fea7d9a547478e013999938debfa47
URL: https://github.com/llvm/llvm-project/commit/306b08c3a9fea7d9a547478e013999938debfa47
DIFF: https://github.com/llvm/llvm-project/commit/306b08c3a9fea7d9a547478e013999938debfa47.diff
LOG: [AMDGPU] Remove unused SITargetLowering::isMemOpUniform
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 25cb8341c51d53..736f714ac1a77c 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -1914,12 +1914,6 @@ bool SITargetLowering::isFreeAddrSpaceCast(unsigned SrcAS,
return TM.isNoopAddrSpaceCast(SrcAS, DestAS);
}
-bool SITargetLowering::isMemOpUniform(const SDNode *N) const {
- const MemSDNode *MemNode = cast<MemSDNode>(N);
-
- return AMDGPUInstrInfo::isUniformMMO(MemNode->getMemOperand());
-}
-
TargetLoweringBase::LegalizeTypeAction
SITargetLowering::getPreferredVectorAction(MVT VT) const {
if (!VT.isScalableVector() && VT.getVectorNumElements() != 1 &&
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.h b/llvm/lib/Target/AMDGPU/SIISelLowering.h
index 1f198a92c0fa6a..bcdb4204c6b629 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.h
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.h
@@ -346,7 +346,6 @@ class SITargetLowering final : public AMDGPUTargetLowering {
EVT getOptimalMemOpType(const MemOp &Op,
const AttributeList &FuncAttributes) const override;
- bool isMemOpUniform(const SDNode *N) const;
bool isMemOpHasNoClobberedMemOperand(const SDNode *N) const;
static bool isNonGlobalAddrSpace(unsigned AS);
More information about the llvm-commits
mailing list