diff --git a/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp b/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp index fcaa6f9..60b2b2f 100644 --- a/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp +++ b/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp @@ -1210,16 +1210,8 @@ bool AMDGPUDAGToDAGISel::selectMOVRELOffsetImpl(SDValue Index, return true; } - if (IsInsert) { - if (ConstantSDNode *CBase = dyn_cast(Index)) { - Base = CurDAG->getRegister(AMDGPU::NoRegister, MVT::i32); - Offset = CurDAG->getTargetConstant(CBase->getZExtValue(), DL, MVT::i32); - return true; - } - } else { - if (isa(Index)) - return false; - } + if (isa(Index)) + return false; Base = Index; Offset = CurDAG->getTargetConstant(0, DL, MVT::i32);