-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Move GetLclOffs method to GenTreeLclVarCommon.
#39623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move GetLclOffs method to GenTreeLclVarCommon.
#39623
Conversation
GetLclOffs offset method to GenTreeLclVarCommon.GetLclOffs method to GenTreeLclVarCommon.
54ca1e5 to
5e47c5a
Compare
5e47c5a to
503a792
Compare
|
PTAL @AndyAyersMS @CarolEidt @dotnet/jit-contrib This is a refactoring PR for #39424 (review) |
AndyAyersMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some commenting nits.
| return genRegNumFromMask(tempRegMask); | ||
| } | ||
|
|
||
| uint16_t GenTreeLclVarCommon::GetLclOffs() const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
|
|
||
| // Need an addtional integer register to extract upper 4 bytes from data. | ||
| regNumber tmpReg = treeNode->GetSingleTempReg(); | ||
| regNumber tmpReg = lclVar->GetSingleTempReg(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the typo in the line above? addtional -> additional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* Move `GetLclOffs` to `Common`. * Start using it. * Review response.
Move
GetLclOffsoffset method toGenTreeLclVarCommonto simplify blocks that are asking working both with Fields and Vars.If I understood correctly it is what was proposed in #39424 (review)