File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2498,10 +2498,6 @@ void RAGreedy::tryHintRecoloring(const LiveInterval &VirtReg) {
2498
2498
do {
2499
2499
Reg = RecoloringCandidates.pop_back_val ();
2500
2500
2501
- // We cannot recolor physical register.
2502
- if (Reg.isPhysical ())
2503
- continue ;
2504
-
2505
2501
// This may be a skipped register.
2506
2502
if (!VRM->hasPhys (Reg)) {
2507
2503
assert (!shouldAllocateRegister (Reg) &&
@@ -2549,7 +2545,8 @@ void RAGreedy::tryHintRecoloring(const LiveInterval &VirtReg) {
2549
2545
// Push all copy-related live-ranges to keep reconciling the broken
2550
2546
// hints.
2551
2547
for (const HintInfo &HI : Info) {
2552
- if (Visited.insert (HI.Reg ).second )
2548
+ // We cannot recolor physical register.
2549
+ if (HI.Reg .isVirtual () && Visited.insert (HI.Reg ).second )
2553
2550
RecoloringCandidates.push_back (HI.Reg );
2554
2551
}
2555
2552
} while (!RecoloringCandidates.empty ());
You can’t perform that action at this time.
0 commit comments