Skip to content

Conversation

@sandreenko
Copy link
Contributor

introduced by #55247

@sandreenko sandreenko added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 8, 2021
@sandreenko sandreenko requested a review from kunalspathak July 8, 2021 06:20
? spillCandidateRegRecord->assignedInterval->recentRefPosition
: nullptr;
if ((recentRefPosition != nullptr) && (recentRefPosition->RegOptional() &&
if ((recentRefPosition != nullptr) &&
Copy link
Contributor

@kunalspathak kunalspathak Jul 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad for not spotting this formatting error in #55247. I also missed one more change to hoist spillCandidateRegRecord->assignedInterval. Do you mind changing that as well?

Interval* assignedInterval = spillCandidateRegRecord->assignedInterval;

// and then use assingedInterval at multiple places.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@kunalspathak kunalspathak Jul 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might need to define it after the line:

RegRecord* spillCandidateRegRecord = &linearScan->physRegs[spillCandidateRegNum];
Interval*    assignedInterval      = spillCandidateRegRecord->assignedInterval;

so that you can use it in condition on line 11254 as well.

if ((linearScan->getNextIntervalRef(spillCandidateRegNum, regType) == currentLocation) &&
            !assignedInterval->getNextRefPosition()->RegOptional())
        {
            continue;
        }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please open a PR with a fix? I think it would be faster and less confusing for the history/blame.

@sandreenko sandreenko closed this Jul 8, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants