Skip to content

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 community-contribution Indicates that the PR has been added by a community member area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels 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