Skip to content

Commit e21d3b9

Browse files
committed
[NFC][StackSlotColoring] Remove dead code
1 parent 776f984 commit e21d3b9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/CodeGen/StackSlotColoring.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ bool StackSlotColoring::ColorSlots(MachineFunction &MF) {
369369
SmallVector<int, 16> SlotMapping(NumObjs, -1);
370370
SmallVector<float, 16> SlotWeights(NumObjs, 0.0);
371371
SmallVector<SmallVector<int, 4>, 16> RevMap(NumObjs);
372-
BitVector UsedColors(NumObjs);
373372

374373
LLVM_DEBUG(dbgs() << "Color spill slot intervals:\n");
375374
bool Changed = false;
@@ -380,7 +379,6 @@ bool StackSlotColoring::ColorSlots(MachineFunction &MF) {
380379
SlotMapping[SS] = NewSS;
381380
RevMap[NewSS].push_back(SS);
382381
SlotWeights[NewSS] += li->weight();
383-
UsedColors.set(NewSS);
384382
Changed |= (SS != NewSS);
385383
}
386384

0 commit comments

Comments
 (0)