Skip to content

JIT: introduce some SSA accounting and checking - #77055

Merged
AndyAyersMS merged 2 commits into
dotnet:mainfrom
AndyAyersMS:TrackSameBlockSSADefs
Nov 1, 2022
Merged

AndyAyersMS merged 2 commits into
dotnet:mainfrom
AndyAyersMS:TrackSameBlockSSADefs

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

Record some information about each SSA def and try and keep it conservatively correct through the first few optimization phases.

We note:

  • total number of uses
  • whether all uses are in the same block as the def
  • whether there are any phi uses

Subsequent phases that introduce new uses must now call optRecordSsaUses on the new trees they create to update these accounts.

This information is cross-checked versus the IR in post phase checking. Because we don't have a well defined mechanism to track when nodes are deleted the recorded counts may end up being overestimates in subsequent phases. This is ok, but underestimates are flagged as errors.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR 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.

3 participants