Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Replace gtLclVarCommon. with AsLclVarCommon()->#27207

Merged
sandreenko merged 5 commits into
dotnet:masterfrom
franksinankaya:frkaya/gtLclVarCommon
Oct 21, 2019
Merged

Replace gtLclVarCommon. with AsLclVarCommon()->#27207
sandreenko merged 5 commits into
dotnet:masterfrom
franksinankaya:frkaya/gtLclVarCommon

Conversation

@franksinankaya
Copy link
Copy Markdown

@franksinankaya franksinankaya changed the title find src/jit -type f -exec sed -i -e 's/gtLclVarCommon\./AsLclVarComm… Replace gtLclVarCommon. with AsLclVarCommon()-> Oct 15, 2019
@franksinankaya franksinankaya force-pushed the frkaya/gtLclVarCommon branch 2 times, most recently from 62f3185 to bcb3953 Compare October 17, 2019 01:50
Copy link
Copy Markdown

@sandreenko sandreenko left a comment

Choose a reason for hiding this comment

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

LGTM, ignore the notes, but please delete the extra symbol in the license header.

Comment thread src/jit/simdcodegenxarch.cpp Outdated
Comment thread src/jit/optimizer.cpp
if ((init->gtOper != GT_ASG) || (init->AsOp()->gtOp1->gtOper != GT_LCL_VAR) ||
(init->AsOp()->gtOp1->gtLclVarCommon.GetLclNum() != lvar) || (init->AsOp()->gtOp2->gtOper != GT_CNS_INT) ||
(init->AsOp()->gtOp2->AsIntCon()->gtIconVal != lbeg) ||
(init->AsOp()->gtOp1->AsLclVarCommon()->GetLclNum() != lvar) ||
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

note for me.

Comment thread src/jit/morph.cpp
@@ -3727,7 +3727,8 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
assert(argEntry->structDesc.passedInRegisters);
if (lclVar != nullptr)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

note.

Comment thread src/jit/optcse.cpp

// Assign the ssa num for the use. Note it may be the reserved num.
cse->gtLclVarCommon.SetSsaNum(cseSsaNum);
cse->AsLclVarCommon()->SetSsaNum(cseSsaNum);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

note

Comment thread src/jit/importer.cpp
@@ -16435,7 +16436,8 @@ bool Compiler::impReturnInstruction(BasicBlock* block, int prefixFlags, OPCODE&
// Some other block(s) have seen the CEE_RET first.
// Better they spilled to the same temp.
assert(impInlineInfo->retExpr->gtOper == GT_LCL_VAR);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

note

Comment thread src/jit/importer.cpp
if ((arrayAssignment->gtOper != GT_ASG) || (arrayAssignment->AsOp()->gtOp1->gtOper != GT_LCL_VAR) ||
(arrayLocalNode->gtOper != GT_LCL_VAR) ||
(arrayAssignment->AsOp()->gtOp1->gtLclVarCommon.GetLclNum() != arrayLocalNode->gtLclVarCommon.GetLclNum()))
(arrayLocalNode->gtOper != GT_LCL_VAR) || (arrayAssignment->AsOp()->gtOp1->AsLclVarCommon()->GetLclNum() !=
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

note

@sandreenko sandreenko merged commit 5e231b5 into dotnet:master Oct 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants