Skip to content

Commit d2fda70

Browse files
[AArch64] Remove an unnecessary cast (NFC) (#156139)
getOpcode() already returns unsigned.
1 parent f6157c7 commit d2fda70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6718,7 +6718,7 @@ static bool canCombine(MachineBasicBlock &MBB, MachineOperand &MO,
67186718
if (MO.isReg() && MO.getReg().isVirtual())
67196719
MI = MRI.getUniqueVRegDef(MO.getReg());
67206720
// And it needs to be in the trace (otherwise, it won't have a depth).
6721-
if (!MI || MI->getParent() != &MBB || (unsigned)MI->getOpcode() != CombineOpc)
6721+
if (!MI || MI->getParent() != &MBB || MI->getOpcode() != CombineOpc)
67226722
return false;
67236723
// Must only used by the user we combine with.
67246724
if (!MRI.hasOneNonDBGUse(MI->getOperand(0).getReg()))

0 commit comments

Comments
 (0)