forked from OSchip/llvm-project
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
This commit is contained in:
parent
011ff9bec9
commit
0c18757c9d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue