[AArch64] Remove an unnecessary cast (NFC) (#156139)

getOpcode() already returns unsigned.
This commit is contained in:
Kazu Hirata 2025-08-30 10:01:26 -07:00 committed by GitHub
parent f6157c71ab
commit d2fda70afc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6718,7 +6718,7 @@ static bool canCombine(MachineBasicBlock &MBB, MachineOperand &MO,
if (MO.isReg() && MO.getReg().isVirtual())
MI = MRI.getUniqueVRegDef(MO.getReg());
// And it needs to be in the trace (otherwise, it won't have a depth).
if (!MI || MI->getParent() != &MBB || (unsigned)MI->getOpcode() != CombineOpc)
if (!MI || MI->getParent() != &MBB || MI->getOpcode() != CombineOpc)
return false;
// Must only used by the user we combine with.
if (!MRI.hasOneNonDBGUse(MI->getOperand(0).getReg()))