diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2023-12-01 18:31:50 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2023-12-01 18:34:01 +0000 |
| commit | 6c5e967f5d19ccefe6cf7700ac3998b80d19f202 (patch) | |
| tree | 6eed739f2a60e70a6ae100abac1061a18c21da1f /llvm/lib/CodeGen/TargetInstrInfo.cpp | |
| parent | 8bea804923a1b028e86b177caccb3258708ca01c (diff) | |
Fix MSVC signed/unsigned mismatch warning. NFC.
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 fbb7c81fa1f8..b88bb9a8a0c4 100644 --- a/llvm/lib/CodeGen/TargetInstrInfo.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp @@ -1463,7 +1463,7 @@ bool TargetInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel, unsigned DefClass = DefMI.getDesc().getSchedClass(); std::optional<unsigned> DefCycle = ItinData->getOperandCycle(DefClass, DefIdx); - return DefCycle <= 1; + return DefCycle <= 1U; } bool TargetInstrInfo::isFunctionSafeToSplit(const MachineFunction &MF) const { |
