From: Andrew Trick Date: Mon, 17 Jun 2013 21:45:09 +0000 (+0000) Subject: MI Sched: fix a typo in RegPressure heuristics. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e0f6046241ae9bc2f6325142abdfd9cdb9032bab;p=oota-llvm.git 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 --- 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; } } }