Skip to content
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

Fold field offsets into array addresses #74719

Closed
wants to merge 4 commits into from

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Aug 27, 2022

That is:

 ADD
   ARR_ADDR T[]
     ADD
       LCL_VAR array
       CNS_INT 40
   8

 =>

 ARR_ADDR T[] [+8]
   ADD
     ADD
       LCL_VAR array
       CNS_INT 40
     8

 =>

 ARR_ADDR T[] [+8]
   ADD
     LCL_VAR array
     CNS_INT 48

We're expecting some positive diffs.

This should also help get rid of regressions seen over at #72725.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Aug 27, 2022
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 27, 2022
@ghost
Copy link

ghost commented Aug 27, 2022

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

Issue Details

That is:

 ADD
   ARR_ADDR T[]
     ADD
       LCL_VAR array
       CNS_INT 40
   8

 =>

 ARR_ADDR T[] [+8]
   ADD
     ADD
       LCL_VAR array
       CNS_INT 40
   8

 =>

 ARR_ADDR T[] [+8]
   ADD
     LCL_VAR array
     CNS_INT 48

We're expecting some positive diffs.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

This allows us to re-associate the expessions such that
the outer field offset additions can get folded into:

 ADD
   ARR_ADDR T[]
     ADD
       LCL_VAR array
       CNS_INT 40
   8

 =>

 ARR_ADDR T[] [+8]
   ADD
     ADD
       LCL_VAR array
       CNS_INT 40
     8

 =>

 ARR_ADDR T[] [+8]
   ADD
     LCL_VAR array
     CNS_INT 48
No longer necessary.
@ghost
Copy link

ghost commented Sep 27, 2022

Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it.

@SingleAccretion SingleAccretion deleted the Arr-Addr-Folding branch October 10, 2022 11:11
@ghost ghost locked as resolved and limited conversation to collaborators Nov 9, 2022
This pull request was closed.
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 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant