Skip to content

Commit de70b95

Browse files
authored
[AMDGPU] Fix typo in promoteUniformOpToI32 (#109942)
1 parent e4688b9 commit de70b95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6797,8 +6797,7 @@ SDValue SITargetLowering::promoteUniformOpToI32(SDValue Op,
67976797
LHS = DAG.getNode(ExtOp, DL, ExtTy, {LHS});
67986798

67996799
// Special case: for shifts, the RHS always needs a zext.
6800-
if (Op.getOpcode() == ISD::SRA || Op.getOpcode() == ISD::SRL ||
6801-
Op.getOpcode() == ISD::SRA)
6800+
if (Opc == ISD::SHL || Opc == ISD::SRL || Opc == ISD::SRA)
68026801
RHS = DAG.getNode(ISD::ZERO_EXTEND, DL, ExtTy, {RHS});
68036802
else
68046803
RHS = DAG.getNode(ExtOp, DL, ExtTy, {RHS});

0 commit comments

Comments
 (0)