diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-03 17:21:16 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-03 17:21:16 +0000 |
commit | bae696956b74680a7fedafb7fea70628d1ef14df (patch) | |
tree | 181cf82656f91bfd098a22fbe34bacecf916d21b | |
parent | 0055f97f72fa033826325c5a4920fdd490db818d (diff) | |
download | external_llvm-bae696956b74680a7fedafb7fea70628d1ef14df.zip external_llvm-bae696956b74680a7fedafb7fea70628d1ef14df.tar.gz external_llvm-bae696956b74680a7fedafb7fea70628d1ef14df.tar.bz2 |
Oops. Don't normalize spill weights twice.
When the normalizeSpillWeights function was introduced, I forgot to remove this
normalization.
This change could affect register allocation. Hopefully for the better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110119 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 67968b3..a6dc336 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1855,7 +1855,6 @@ addIntervalsForSpills(const LiveInterval &li, for (unsigned i = 0, e = NewLIs.size(); i != e; ++i) { LiveInterval *LI = NewLIs[i]; if (!LI->empty()) { - LI->weight /= SlotIndex::NUM * getApproximateInstructionCount(*LI); if (!AddedKill.count(LI)) { LiveRange *LR = &LI->ranges[LI->ranges.size()-1]; SlotIndex LastUseIdx = LR->end.getBaseIndex(); |