Skip to content

Fix format errors. - #55314

Closed
sandreenko wants to merge 2 commits into
dotnet:mainfrom
sandreenko:fixFormat
Closed

Fix format errors.#55314
sandreenko wants to merge 2 commits into
dotnet:mainfrom
sandreenko:fixFormat

Conversation

@sandreenko

Copy link
Copy Markdown
Contributor

introduced by #55247

@sandreenkosandreenko added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 8, 2021
? spillCandidateRegRecord->assignedInterval->recentRefPosition
: nullptr;
if ((recentRefPosition != nullptr) && (recentRefPosition->RegOptional() &&
if ((recentRefPosition != nullptr) &&

@kunalspathakkunalspathakJul 8, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

done

@kunalspathakkunalspathakJul 8, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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.

@ghostghost locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR 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

@sandreenko@kunalspathak