From e0f6046241ae9bc2f6325142abdfd9cdb9032bab Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Mon, 17 Jun 2013 21:45:09 +0000 Subject: [PATCH] MI Sched: fix a typo in RegPressure heuristics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184131 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegisterPressure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp index 97f22e1049f..bdfd7fe0b63 100644 --- a/lib/CodeGen/RegisterPressure.cpp +++ b/lib/CodeGen/RegisterPressure.cpp @@ -599,7 +599,7 @@ static void computeMaxPressureDelta(ArrayRef OldMaxPressureVec, int MDiff = (int)PNew - (int)MaxPressureLimit[i]; if (MDiff > Delta.CurrentMax.UnitIncrease) { Delta.CurrentMax.PSetID = i; - Delta.CurrentMax.UnitIncrease = PNew; + Delta.CurrentMax.UnitIncrease = MDiff; } } }