diff options
author | Kazu Hirata <kazu@google.com> | 2025-08-04 07:40:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-04 07:40:10 -0700 |
commit | 76abef60b0d7adb9996220894e4390a93cf9bc1c (patch) | |
tree | 51553b09bb1d0000f7ffa9f2967cf8f1cea3c141 /llvm/lib/CodeGen/TargetInstrInfo.cpp | |
parent | 6f74a44b63f3f5de6c741077e11558eb16fc3459 (diff) | |
download | llvm-76abef60b0d7adb9996220894e4390a93cf9bc1c.zip llvm-76abef60b0d7adb9996220894e4390a93cf9bc1c.tar.gz llvm-76abef60b0d7adb9996220894e4390a93cf9bc1c.tar.bz2 |
[CodeGen] Remove an unnecessary cast (NFC) (#151901)
getOpcode() already returns unsigned.
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp index 705e046e..9e49ddd 100644 --- a/llvm/lib/CodeGen/TargetInstrInfo.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp @@ -993,7 +993,7 @@ static bool canCombine(MachineBasicBlock &MBB, MachineOperand &MO, 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 && CombineOpc != 0)) + (MI->getOpcode() != CombineOpc && CombineOpc != 0)) return false; // Must only used by the user we combine with. if (!MRI.hasOneNonDBGUse(MI->getOperand(0).getReg())) |