Skip to content

Commit

Permalink
[AMDGPU] fixes duplicate expressions in if stmnts in SIISelLowering.c…
Browse files Browse the repository at this point in the history
…pp (#82018)

fixes #81766
  • Loading branch information
nickleus27 committed Feb 18, 2024
1 parent ba27c39 commit 767433b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6306,7 +6306,7 @@ SDValue SITargetLowering::lowerFMINNUM_FMAXNUM(SDValue Op,
return expandFMINNUM_FMAXNUM(Op.getNode(), DAG);

if (VT == MVT::v4f16 || VT == MVT::v8f16 || VT == MVT::v16f16 ||
VT == MVT::v16f16)
VT == MVT::v32f16)
return splitBinaryVectorOp(Op, DAG);
return Op;
}
Expand Down Expand Up @@ -14571,7 +14571,7 @@ SDValue SITargetLowering::PerformDAGCombine(SDNode *N,
EVT VT = N->getValueType(0);

// v2i16 (scalar_to_vector i16:x) -> v2i16 (bitcast (any_extend i16:x))
if (VT == MVT::v2i16 || VT == MVT::v2f16 || VT == MVT::v2f16) {
if (VT == MVT::v2i16 || VT == MVT::v2f16 || VT == MVT::v2bf16) {
SDLoc SL(N);
SDValue Src = N->getOperand(0);
EVT EltVT = Src.getValueType();
Expand Down

0 comments on commit 767433b

Please sign in to comment.