File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2498,8 +2498,10 @@ void RAGreedy::tryHintRecoloring(const LiveInterval &VirtReg) {
2498
2498
do {
2499
2499
Reg = RecoloringCandidates.pop_back_val ();
2500
2500
2501
+ MCRegister CurrPhys = VRM->getPhys (Reg);
2502
+
2501
2503
// This may be a skipped register.
2502
- if (!VRM-> hasPhys (Reg) ) {
2504
+ if (!CurrPhys ) {
2503
2505
assert (!shouldAllocateRegister (Reg) &&
2504
2506
" We have an unallocated variable which should have been handled" );
2505
2507
continue ;
@@ -2508,7 +2510,6 @@ void RAGreedy::tryHintRecoloring(const LiveInterval &VirtReg) {
2508
2510
// Get the live interval mapped with this virtual register to be able
2509
2511
// to check for the interference with the new color.
2510
2512
LiveInterval &LI = LIS->getInterval (Reg);
2511
- MCRegister CurrPhys = VRM->getPhys (Reg);
2512
2513
// Check that the new color matches the register class constraints and
2513
2514
// that it is free for this live range.
2514
2515
if (CurrPhys != PhysReg && (!MRI->getRegClass (Reg)->contains (PhysReg) ||
You can’t perform that action at this time.
0 commit comments