File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2482,15 +2482,13 @@ void RAGreedy::tryHintRecoloring(const LiveInterval &VirtReg) {
2482
2482
// We have a broken hint, check if it is possible to fix it by
2483
2483
// reusing PhysReg for the copy-related live-ranges. Indeed, we evicted
2484
2484
// some register and PhysReg may be available for the other live-ranges.
2485
- SmallSet<Register, 4 > Visited;
2486
- SmallVector<Register, 2 > RecoloringCandidates;
2487
2485
HintsInfo Info;
2488
2486
Register Reg = VirtReg.reg ();
2489
2487
MCRegister PhysReg = VRM->getPhys (Reg);
2490
2488
// Start the recoloring algorithm from the input live-interval, then
2491
2489
// it will propagate to the ones that are copy-related with it.
2492
- Visited. insert ( Reg) ;
2493
- RecoloringCandidates. push_back ( Reg) ;
2490
+ SmallSet<Register, 4 > Visited = { Reg} ;
2491
+ SmallVector<Register, 2 > RecoloringCandidates = { Reg} ;
2494
2492
2495
2493
LLVM_DEBUG (dbgs () << " Trying to reconcile hints for: " << printReg (Reg, TRI)
2496
2494
<< ' (' << printReg (PhysReg, TRI) << " )\n " );
You can’t perform that action at this time.
0 commit comments