@@ -4473,7 +4473,7 @@ ARMBaseInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
4473
4473
ItinData->getOperandCycle (DefMCID.getSchedClass (), DefIdx);
4474
4474
int Adj = Subtarget.getPreISelOperandLatencyAdjustment ();
4475
4475
int Threshold = 1 + Adj;
4476
- return !Latency || Latency <= Threshold ? 1 : *Latency - Adj;
4476
+ return !Latency || Latency <= ( unsigned ) Threshold ? 1 : *Latency - Adj;
4477
4477
}
4478
4478
4479
4479
const MCInstrDesc &UseMCID = get (UseNode->getMachineOpcode ());
@@ -4490,7 +4490,7 @@ ARMBaseInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
4490
4490
if (!Latency)
4491
4491
return std::nullopt;
4492
4492
4493
- if (Latency > 1 &&
4493
+ if (Latency > 1U &&
4494
4494
(Subtarget.isCortexA8 () || Subtarget.isLikeA9 () ||
4495
4495
Subtarget.isCortexA7 ())) {
4496
4496
// FIXME: Shifter op hack: no shift (i.e. [r +/- r]) or [r + r << 2]
@@ -4519,7 +4519,7 @@ ARMBaseInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
4519
4519
break ;
4520
4520
}
4521
4521
}
4522
- } else if (DefIdx == 0 && Latency > 2 && Subtarget.isSwift ()) {
4522
+ } else if (DefIdx == 0 && Latency > 2U && Subtarget.isSwift ()) {
4523
4523
// FIXME: Properly handle all of the latency adjustments for address
4524
4524
// writeback.
4525
4525
switch (DefMCID.getOpcode ()) {
@@ -4836,7 +4836,7 @@ bool ARMBaseInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel,
4836
4836
unsigned DefClass = DefMI.getDesc ().getSchedClass ();
4837
4837
std::optional<unsigned > DefCycle =
4838
4838
ItinData->getOperandCycle (DefClass, DefIdx);
4839
- return DefCycle <= 2 ;
4839
+ return DefCycle <= 2U ;
4840
4840
}
4841
4841
return false ;
4842
4842
}
0 commit comments