[AMDGPU] Remove hasDefinedInitializer (NFC)

The last use was removed on Sep 16, 2021 in commit
7a62a5b56d.
This commit is contained in:
Kazu Hirata 2021-10-28 20:33:34 -07:00
parent dd5d46b009
commit 01b4789b62
2 changed files with 0 additions and 9 deletions

View File

@ -1332,14 +1332,6 @@ void AMDGPUTargetLowering::ReplaceNodeResults(SDNode *N,
}
}
bool AMDGPUTargetLowering::hasDefinedInitializer(const GlobalValue *GV) {
const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
if (!GVar || !GVar->hasInitializer())
return false;
return !isa<UndefValue>(GVar->getInitializer());
}
SDValue AMDGPUTargetLowering::LowerGlobalAddress(AMDGPUMachineFunction* MFI,
SDValue Op,
SelectionDAG &DAG) const {

View File

@ -37,7 +37,6 @@ private:
public:
static unsigned numBitsUnsigned(SDValue Op, SelectionDAG &DAG);
static unsigned numBitsSigned(SDValue Op, SelectionDAG &DAG);
static bool hasDefinedInitializer(const GlobalValue *GV);
protected:
SDValue LowerEXTRACT_SUBVECTOR(SDValue Op, SelectionDAG &DAG) const;