Skip to content

Commit c012ebd

Browse files
committed
[NFC][StackSlotColoring] Remove dead code
1 parent 1bdaaae commit c012ebd

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
@@ -359,7 +359,6 @@ bool StackSlotColoring::ColorSlots(MachineFunction &MF) {
359359
SmallVector<int, 16> SlotMapping(NumObjs, -1);
360360
SmallVector<float, 16> SlotWeights(NumObjs, 0.0);
361361
SmallVector<SmallVector<int, 4>, 16> RevMap(NumObjs);
362-
BitVector UsedColors(NumObjs);
363362

364363
LLVM_DEBUG(dbgs() << "Color spill slot intervals:\n");
365364
bool Changed = false;
@@ -370,7 +369,6 @@ bool StackSlotColoring::ColorSlots(MachineFunction &MF) {
370369
SlotMapping[SS] = NewSS;
371370
RevMap[NewSS].push_back(SS);
372371
SlotWeights[NewSS] += li->weight();
373-
UsedColors.set(NewSS);
374372
Changed |= (SS != NewSS);
375373
}
376374

0 commit comments

Comments
 (0)