@@ -278,7 +278,6 @@ class AMDGPUDAGToDAGISel : public SelectionDAGISel {
278
278
void SelectAddcSubb (SDNode *N);
279
279
void SelectUADDO_USUBO (SDNode *N);
280
280
void SelectDIV_SCALE (SDNode *N);
281
- void SelectDIV_FMAS (SDNode *N);
282
281
void SelectMAD_64_32 (SDNode *N);
283
282
void SelectFMA_W_CHAIN (SDNode *N);
284
283
void SelectFMUL_W_CHAIN (SDNode *N);
@@ -871,10 +870,6 @@ void AMDGPUDAGToDAGISel::Select(SDNode *N) {
871
870
SelectDIV_SCALE (N);
872
871
return ;
873
872
}
874
- case AMDGPUISD::DIV_FMAS: {
875
- SelectDIV_FMAS (N);
876
- return ;
877
- }
878
873
case AMDGPUISD::MAD_I64_I32:
879
874
case AMDGPUISD::MAD_U64_U32: {
880
875
SelectMAD_64_32 (N);
@@ -1128,35 +1123,6 @@ void AMDGPUDAGToDAGISel::SelectDIV_SCALE(SDNode *N) {
1128
1123
CurDAG->SelectNodeTo (N, Opc, N->getVTList (), Ops);
1129
1124
}
1130
1125
1131
- void AMDGPUDAGToDAGISel::SelectDIV_FMAS (SDNode *N) {
1132
- const GCNSubtarget *ST = static_cast <const GCNSubtarget *>(Subtarget);
1133
- const SIRegisterInfo *TRI = ST->getRegisterInfo ();
1134
-
1135
- SDLoc SL (N);
1136
- EVT VT = N->getValueType (0 );
1137
-
1138
- assert (VT == MVT::f32 || VT == MVT::f64 );
1139
-
1140
- unsigned Opc
1141
- = (VT == MVT::f64 ) ? AMDGPU::V_DIV_FMAS_F64 : AMDGPU::V_DIV_FMAS_F32;
1142
-
1143
- SDValue CarryIn = N->getOperand (3 );
1144
- // V_DIV_FMAS implicitly reads VCC.
1145
- SDValue VCC = CurDAG->getCopyToReg (CurDAG->getEntryNode (), SL,
1146
- TRI->getVCC (), CarryIn, SDValue ());
1147
-
1148
- SDValue Ops[10 ];
1149
-
1150
- SelectVOP3Mods0 (N->getOperand (0 ), Ops[1 ], Ops[0 ], Ops[6 ], Ops[7 ]);
1151
- SelectVOP3Mods (N->getOperand (1 ), Ops[3 ], Ops[2 ]);
1152
- SelectVOP3Mods (N->getOperand (2 ), Ops[5 ], Ops[4 ]);
1153
-
1154
- Ops[8 ] = VCC;
1155
- Ops[9 ] = VCC.getValue (1 );
1156
-
1157
- CurDAG->SelectNodeTo (N, Opc, N->getVTList (), Ops);
1158
- }
1159
-
1160
1126
// We need to handle this here because tablegen doesn't support matching
1161
1127
// instructions with multiple outputs.
1162
1128
void AMDGPUDAGToDAGISel::SelectMAD_64_32 (SDNode *N) {
0 commit comments