Skip to content

Commit f9f79d9

Browse files
authored
[AMDGPU] Fix VTList for BUFFER_LOAD and DENORM_MODE (#138704)
This fixes bugs that would be caught by verifyTargetNode in #119709.
1 parent c956ed0 commit f9f79d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8703,7 +8703,7 @@ SDValue SITargetLowering::lowerSBuffer(EVT VT, SDLoc DL, SDValue Rsrc,
87038703
LoadVT = MVT::getVectorVT(LoadVT.getScalarType(), 4);
87048704
}
87058705

8706-
SDVTList VTList = DAG.getVTList({LoadVT, MVT::Glue});
8706+
SDVTList VTList = DAG.getVTList({LoadVT, MVT::Other});
87078707

87088708
// Use the alignment to ensure that the required offsets will fit into the
87098709
// immediate offsets.
@@ -11184,9 +11184,10 @@ SDValue SITargetLowering::LowerFDIV32(SDValue Op, SelectionDAG &DAG) const {
1118411184
const SDValue DisableDenormValue = getSPDenormModeValue(
1118511185
FP_DENORM_FLUSH_IN_FLUSH_OUT, DAG, Info, Subtarget);
1118611186

11187+
SDVTList BindParamVTs = DAG.getVTList(MVT::Other, MVT::Glue);
1118711188
DisableDenorm =
11188-
DAG.getNode(AMDGPUISD::DENORM_MODE, SL, MVT::Other, Fma4.getValue(1),
11189-
DisableDenormValue, Fma4.getValue(2))
11189+
DAG.getNode(AMDGPUISD::DENORM_MODE, SL, BindParamVTs,
11190+
Fma4.getValue(1), DisableDenormValue, Fma4.getValue(2))
1119011191
.getNode();
1119111192
} else {
1119211193
assert(HasDynamicDenormals == (bool)SavedDenormMode);

0 commit comments

Comments
 (0)