Skip to content

Commit

Permalink
AMDGPU: Add disjoint to or produced from lowering vector ops (#122424)
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm authored Jan 10, 2025
1 parent fd922c4 commit 46ca6df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7458,7 +7458,8 @@ SDValue SITargetLowering::lowerINSERT_VECTOR_ELT(SDValue Op,
DAG.getNode(ISD::AND, SL, IntVT, DAG.getNOT(SL, BFM, IntVT), BCVec);

// 4. Get (2) and (3) ORed into the target vector.
SDValue BFI = DAG.getNode(ISD::OR, SL, IntVT, LHS, RHS);
SDValue BFI =
DAG.getNode(ISD::OR, SL, IntVT, LHS, RHS, SDNodeFlags::Disjoint);

return DAG.getNode(ISD::BITCAST, SL, VecVT, BFI);
}
Expand Down Expand Up @@ -7666,7 +7667,8 @@ SDValue SITargetLowering::lowerBUILD_VECTOR(SDValue Op,
Lo = DAG.getNode(ISD::BITCAST, SL, MVT::i16, Lo);
Lo = DAG.getNode(ISD::ZERO_EXTEND, SL, MVT::i32, Lo);

SDValue Or = DAG.getNode(ISD::OR, SL, MVT::i32, Lo, ShlHi);
SDValue Or =
DAG.getNode(ISD::OR, SL, MVT::i32, Lo, ShlHi, SDNodeFlags::Disjoint);
return DAG.getNode(ISD::BITCAST, SL, VT, Or);
}

Expand Down

0 comments on commit 46ca6df

Please sign in to comment.