[llvm] r342189 - [AMDGPU] Removed unused method
Tim Renouf via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 13 14:56:25 PDT 2018
Author: tpr
Date: Thu Sep 13 14:56:25 2018
New Revision: 342189
URL: http://llvm.org/viewvc/llvm-project?rev=342189&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp?rev=342189&r1=342188&r2=342189&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp Thu Sep 13 14:56:25 2018
@@ -141,9 +141,6 @@ private:
SDValue &Offset, SDValue &SLC) const;
bool SelectMUBUFOffset(SDValue Addr, SDValue &SRsrc, SDValue &Soffset,
SDValue &Offset) const;
- bool SelectMUBUFConstant(SDValue Constant,
- SDValue &SOffset,
- SDValue &ImmOffset) const;
bool SelectFlatAtomic(SDValue Addr, SDValue &VAddr,
SDValue &Offset, SDValue &SLC) const;
@@ -1281,25 +1278,6 @@ bool AMDGPUDAGToDAGISel::SelectMUBUFOffs
return SelectMUBUFOffset(Addr, SRsrc, Soffset, Offset, GLC, SLC, TFE);
}
-bool AMDGPUDAGToDAGISel::SelectMUBUFConstant(SDValue Constant,
- SDValue &SOffset,
- SDValue &ImmOffset) const {
- SDLoc DL(Constant);
- uint32_t Imm = cast<ConstantSDNode>(Constant)->getZExtValue();
- uint32_t Overflow;
- if (!AMDGPU::splitMUBUFOffset(Imm, Overflow, Imm, Subtarget))
- return false;
- ImmOffset = CurDAG->getTargetConstant(Imm, DL, MVT::i16);
- if (Overflow <= 64)
- SOffset = CurDAG->getTargetConstant(Overflow, DL, MVT::i32);
- else
- SOffset = SDValue(CurDAG->getMachineNode(AMDGPU::S_MOV_B32, DL, MVT::i32,
- CurDAG->getTargetConstant(Overflow, DL, MVT::i32)),
- 0);
-
- return true;
-}
-
template <bool IsSigned>
bool AMDGPUDAGToDAGISel::SelectFlatOffset(SDValue Addr,
SDValue &VAddr,
More information about the llvm-commits
mailing list