git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157002
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned Limit = TRI->getRegPressureSetLimit(i);
if (Limit > POld) {
if (Limit > PNew)
- PDiff = 0; // Under the limit
+ PDiff = 0; // Under the limit
else
PDiff = PNew - Limit; // Just exceeded limit.
}
else if (Limit > PNew)
- PDiff = Limit - POld; // Just obeyed limit.
+ PDiff = Limit - POld; // Just obeyed limit.
if (std::abs(PDiff) > std::abs(ExcessUnits)) {
ExcessUnits = PDiff;
void getMaxPressureDelta(const MachineInstr *MI, RegPressureDelta &Delta) {
if (isTopClosed())
return getMaxDownwardPressureDelta(MI, Delta);
+
assert(isBottomClosed() && "Uninitialized pressure tracker");
return getMaxUpwardPressureDelta(MI, Delta);
}