Skip to content

JIT: Stop relying on type handles in CSE - #83306

Merged
jakobbotsch merged 3 commits into
dotnet:mainfrom
jakobbotsch:fix-83125
Mar 14, 2023
Merged

JIT: Stop relying on type handles in CSE#83306
jakobbotsch merged 3 commits into
dotnet:mainfrom
jakobbotsch:fix-83125

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 11, 2023
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch, @kunalspathak
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix #83215

Author:jakobbotsch
Assignees:-
Labels:

area-CodeGen-coreclr

Milestone:-

@jakobbotsch

Copy link
Copy Markdown
MemberAuthor

Will wait for #83307 to make it in since that will conflict.

@jakobbotsch
jakobbotsch marked this pull request as ready for review March 14, 2023 11:12
@jakobbotsch

Copy link
Copy Markdown
MemberAuthor

Diffs.

cc @dotnet/jit-contrib PTAL @AndyAyersMS

@AndyAyersMSAndyAyersMS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice.

{
m_pCompiler->lvaTable[cseLclVarNum].setLvRefCnt(1);
m_pCompiler->lvaTable[cseLclVarNum].setLvRefCntWtd(curWeight);
lclDsc->setLvRefCnt(1);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I realize this is pre-existing logic, but we no longer bother to keep ref counts incrementally up to date (see dotnet/coreclr#19345). I don't recall if we ended up needing to keep this particular update for some reason, or I just missed it when removing the other updates.

This is mostly just a note to myself for follow up. No need to explore the ref count changes as part of this PR.

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.

JIT: Lift CSE limitations around type handles

2 participants

@jakobbotsch@AndyAyersMS