Skip to content

Commit

Permalink
[AMDGPU] Fix typo in promoteUniformOpToI32 (llvm#109942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-vh authored Sep 25, 2024
1 parent e4688b9 commit de70b95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6797,8 +6797,7 @@ SDValue SITargetLowering::promoteUniformOpToI32(SDValue Op,
LHS = DAG.getNode(ExtOp, DL, ExtTy, {LHS});

// Special case: for shifts, the RHS always needs a zext.
if (Op.getOpcode() == ISD::SRA || Op.getOpcode() == ISD::SRL ||
Op.getOpcode() == ISD::SRA)
if (Opc == ISD::SHL || Opc == ISD::SRL || Opc == ISD::SRA)
RHS = DAG.getNode(ISD::ZERO_EXTEND, DL, ExtTy, {RHS});
else
RHS = DAG.getNode(ExtOp, DL, ExtTy, {RHS});
Expand Down

0 comments on commit de70b95

Please sign in to comment.