[llvm] r184131 - MI Sched: fix a typo in RegPressure heuristics.
Andrew Trick
atrick at apple.com
Mon Jun 17 14:45:09 PDT 2013
Author: atrick
Date: Mon Jun 17 16:45:09 2013
New Revision: 184131
URL: http://llvm.org/viewvc/llvm-project?rev=184131&view=rev
Log:
MI Sched: fix a typo in RegPressure heuristics.
Modified:
llvm/trunk/lib/CodeGen/RegisterPressure.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterPressure.cpp?rev=184131&r1=184130&r2=184131&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterPressure.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterPressure.cpp Mon Jun 17 16:45:09 2013
@@ -599,7 +599,7 @@ static void computeMaxPressureDelta(Arra
int MDiff = (int)PNew - (int)MaxPressureLimit[i];
if (MDiff > Delta.CurrentMax.UnitIncrease) {
Delta.CurrentMax.PSetID = i;
- Delta.CurrentMax.UnitIncrease = PNew;
+ Delta.CurrentMax.UnitIncrease = MDiff;
}
}
}
More information about the llvm-commits
mailing list