Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 5d02c0f

Browse files
author
Tim Renouf
committed
[AMDGPU] Removed unused method
Summary: I accidentally left this behind in D50306, and it causes a build warning when I build with gcc7. Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D52022 Change-Id: I30f7a47047e9d9d841f652da66d2fea19e74842c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342189 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 52d9c5f commit 5d02c0f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ class AMDGPUDAGToDAGISel : public SelectionDAGISel {
141141
SDValue &Offset, SDValue &SLC) const;
142142
bool SelectMUBUFOffset(SDValue Addr, SDValue &SRsrc, SDValue &Soffset,
143143
SDValue &Offset) const;
144-
bool SelectMUBUFConstant(SDValue Constant,
145-
SDValue &SOffset,
146-
SDValue &ImmOffset) const;
147144

148145
bool SelectFlatAtomic(SDValue Addr, SDValue &VAddr,
149146
SDValue &Offset, SDValue &SLC) const;
@@ -1281,25 +1278,6 @@ bool AMDGPUDAGToDAGISel::SelectMUBUFOffset(SDValue Addr, SDValue &SRsrc,
12811278
return SelectMUBUFOffset(Addr, SRsrc, Soffset, Offset, GLC, SLC, TFE);
12821279
}
12831280

1284-
bool AMDGPUDAGToDAGISel::SelectMUBUFConstant(SDValue Constant,
1285-
SDValue &SOffset,
1286-
SDValue &ImmOffset) const {
1287-
SDLoc DL(Constant);
1288-
uint32_t Imm = cast<ConstantSDNode>(Constant)->getZExtValue();
1289-
uint32_t Overflow;
1290-
if (!AMDGPU::splitMUBUFOffset(Imm, Overflow, Imm, Subtarget))
1291-
return false;
1292-
ImmOffset = CurDAG->getTargetConstant(Imm, DL, MVT::i16);
1293-
if (Overflow <= 64)
1294-
SOffset = CurDAG->getTargetConstant(Overflow, DL, MVT::i32);
1295-
else
1296-
SOffset = SDValue(CurDAG->getMachineNode(AMDGPU::S_MOV_B32, DL, MVT::i32,
1297-
CurDAG->getTargetConstant(Overflow, DL, MVT::i32)),
1298-
0);
1299-
1300-
return true;
1301-
}
1302-
13031281
template <bool IsSigned>
13041282
bool AMDGPUDAGToDAGISel::SelectFlatOffset(SDValue Addr,
13051283
SDValue &VAddr,

0 commit comments

Comments
 (0)