Skip to content

Commit d0c0647

Browse files
committed
[AMDGPU] Small cleanup in optimizeCompareInstr. NFC.
1 parent c137a07 commit d0c0647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8116,7 +8116,7 @@ bool SIInstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, Register SrcReg,
81168116

81178117
BuildMI(*MBB, Def, Def->getDebugLoc(), get(NewOpc))
81188118
.add(*SrcOp)
8119-
.addImm(Log2_64(Mask));
8119+
.addImm(BitNo);
81208120
Def->eraseFromParent();
81218121

81228122
return true;

0 commit comments

Comments
 (0)