mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix signed/unsigned comparison warning on MSVC
llvm-svn: 295962
This commit is contained in:
parent
04f7dbe68e
commit
53c463a54d
@ -1048,7 +1048,7 @@ updateScheduledPressure(const SUnit *SU,
|
|||||||
++CritIdx;
|
++CritIdx;
|
||||||
if (CritIdx != CritEnd && RegionCriticalPSets[CritIdx].getPSet() == ID) {
|
if (CritIdx != CritEnd && RegionCriticalPSets[CritIdx].getPSet() == ID) {
|
||||||
if ((int)NewMaxPressure[ID] > RegionCriticalPSets[CritIdx].getUnitInc()
|
if ((int)NewMaxPressure[ID] > RegionCriticalPSets[CritIdx].getUnitInc()
|
||||||
&& NewMaxPressure[ID] <= std::numeric_limits<int16_t>::max())
|
&& NewMaxPressure[ID] <= (unsigned)std::numeric_limits<int16_t>::max())
|
||||||
RegionCriticalPSets[CritIdx].setUnitInc(NewMaxPressure[ID]);
|
RegionCriticalPSets[CritIdx].setUnitInc(NewMaxPressure[ID]);
|
||||||
}
|
}
|
||||||
unsigned Limit = RegClassInfo->getRegPressureSetLimit(ID);
|
unsigned Limit = RegClassInfo->getRegPressureSetLimit(ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user