-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
JIT: remove GTF_INX_REFARR_LAYOUT #33098
Changes from 1 commit
efd5fa8
68b5e29
8478619
f5a5371
682ac9f
ad0588b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2696,7 +2696,9 @@ class CSE_Heuristic | |
GenTree* cse = nullptr; | ||
bool isDef; | ||
FieldSeqNode* fldSeq = nullptr; | ||
bool hasZeroMapAnnotation = m_pCompiler->GetZeroOffsetFieldMap()->Lookup(exp, &fldSeq); | ||
bool commaOnly = true; | ||
GenTree* effectiveExp = exp->gtEffectiveVal(commaOnly); | ||
const bool hasZeroMapAnnotation = m_pCompiler->GetZeroOffsetFieldMap()->Lookup(effectiveExp, &fldSeq); | ||
|
||
if (IS_CSE_USE(exp->gtCSEnum)) | ||
{ | ||
|
@@ -2907,12 +2909,6 @@ class CSE_Heuristic | |
// Assign the ssa num for the ref use. Note it may be the reserved num. | ||
ref->AsLclVarCommon()->SetSsaNum(cseSsaNum); | ||
|
||
// If it has a zero-offset field seq, copy annotation to the ref | ||
if (hasZeroMapAnnotation) | ||
{ | ||
m_pCompiler->fgAddFieldSeqForZeroOffset(ref, fldSeq); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deleting this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, originally there were two places the zero map annotation got added -- in the def case, and below the join of the use/def. So it was possible to try and add the zero map annotation to the def twice. Now we just rely on the common one below the join. |
||
|
||
/* Create a comma node for the CSE assignment */ | ||
cse = m_pCompiler->gtNewOperNode(GT_COMMA, expTyp, origAsg, ref); | ||
cse->gtVNPair = ref->gtVNPair; // The comma's value is the same as 'val' | ||
|
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.
It looks like you deleted the place below that uses this bool, is that intentional?