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

Implement constant-folding for VNF_BitCast #68979

Merged
merged 3 commits into from
May 15, 2022

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented May 6, 2022

Completes the support for said function.

A small number of diffs:

  1. Improvements: we form new constants from FP <-> integer reinterpretations.
  2. Regressions: we discover new CSEs due to the fact BitCast logic can skip redundant casts for small types in some cases. This new precision is not all that useful however because the new CSE defs throw exceptions different from their uses (typical case: Def: field = array[0]; Use: read field; Use: read field).

@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 May 6, 2022
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label May 6, 2022
@ghost
Copy link

ghost commented May 6, 2022

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

Issue Details

Completes the support for said function.

A small number of diffs in tests where we form new constants from FP <-> integer reinterpretations.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@SingleAccretion
Copy link
Contributor Author

Windows ARM64 failures with empty logs look like infrastructure issues.

@dotnet/jit-contrib

@SingleAccretion SingleAccretion marked this pull request as draft May 8, 2022 09:15
@SingleAccretion
Copy link
Contributor Author

Still needs some work.

@SingleAccretion SingleAccretion force-pushed the Physical-VN-BitCast-Upstream branch 3 times, most recently from 628eeba to 1e1aaa2 Compare May 8, 2022 17:16
@SingleAccretion SingleAccretion marked this pull request as ready for review May 8, 2022 20:24
@SingleAccretion
Copy link
Contributor Author

Should be complete at this point.

@jakobbotsch
Copy link
Member

/azp run runtime

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

A few small diffs in tests where we now form new constants
for "long/int <-> double/float>" reinterpretations.

Completes the support for "VNF_BitCast" and removes the SIMD
quirk from "VNForLoadStoreBitCast".
Only usage of "active" union members is well-defined in C++.
Copy link
Member

@jakobbotsch jakobbotsch left a comment

Choose a reason for hiding this comment

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

LGTM!

@jakobbotsch jakobbotsch merged commit e50de74 into dotnet:main May 15, 2022
@SingleAccretion SingleAccretion deleted the Physical-VN-BitCast-Upstream branch May 15, 2022 10:59
@ghost ghost locked as resolved and limited conversation to collaborators Jun 14, 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.

2 participants