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 | 0c18757c9de194f8daebc2bc50b78c00ccdfbc5a (patch) | |
tree | ad6d8e7f868ae7762c1ef0afa52a74e5b7a29627 /llvm/lib | |
parent | 011ff9bec9789e9c5e2122ca5063916dd0a98ce2 (diff) | |
download | bcm5719-llvm-0c18757c9de194f8daebc2bc50b78c00ccdfbc5a.tar.gz bcm5719-llvm-0c18757c9de194f8daebc2bc50b78c00ccdfbc5a.zip |
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.
llvm-svn: 110119
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 67968b3525b..a6dc3366519 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/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(); |