Skip to content

Do not use LEAs in HIR#69992

Merged
BruceForstall merged 2 commits intodotnet:mainfrom
SingleAccretion:No-LEA-In-HIR
Jun 7, 2022
Merged

Do not use LEAs in HIR#69992
BruceForstall merged 2 commits intodotnet:mainfrom
SingleAccretion:No-LEA-In-HIR

Conversation

@SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented May 30, 2022

The canonical form of a LEA-equivalent expression in HIR is explicit address arithmetic.

Fixes #64375.

Diffs - some improvements from LCL_FLD folding, some regressions from inserting the zero-extending casts. Also a small TP regression, payed for with #69958.

@ghost ghost added 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 labels May 30, 2022
@ghost
Copy link

ghost commented May 30, 2022

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

Issue Details

The canonical form of a LEA-equivalent expression in HIR is explicit address arithmetic.

Fixes #64375.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@SingleAccretion SingleAccretion marked this pull request as ready for review May 31, 2022 18:13
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

@JulieLeeMSFT JulieLeeMSFT requested a review from EgorBo June 2, 2022 19:06
@JulieLeeMSFT JulieLeeMSFT added this to the 7.0.0 milestone Jun 2, 2022
In the frontend, for better or worse, the canonical form
of address arithmetic is explicit pointer arithmetic.
Copy link
Contributor

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

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

LGTM

@BruceForstall BruceForstall merged commit 019a009 into dotnet:main Jun 7, 2022
@SingleAccretion SingleAccretion deleted the No-LEA-In-HIR branch June 7, 2022 08:56
@ghost ghost locked as resolved and limited conversation to collaborators Jul 7, 2022
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.

Vector3.Cross calculates wrong value

4 participants