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

ARM64 - Add GT_CHK_DIV_BY_ZERO #69170

Closed
wants to merge 15 commits into from

Conversation

TIHan
Copy link
Contributor

@TIHan TIHan commented May 11, 2022

This is currently a draft, but the hope is to add a specific node that represents the divide-by-zero check.

@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 11, 2022
@ghost ghost assigned TIHan May 11, 2022
@ghost
Copy link

ghost commented May 11, 2022

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

Issue Details

This is currently a draft, but the hope is to add a specific node that represents the divide-by-zero check.

Author: TIHan
Assignees: TIHan
Labels:

area-CodeGen-coreclr

Milestone: -

src/coreclr/jit/gentree.cpp Outdated Show resolved Hide resolved
@@ -10795,6 +10795,11 @@ void Compiler::fgValueNumberAddExceptionSet(GenTree* tree)
fgValueNumberAddExceptionSetForBoundsCheck(tree);
break;

#ifdef TARGET_ARM64
case GT_CHK_DIV_BY_ZERO:
break;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will need to add an impl for the case here.

@@ -5099,6 +5099,13 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree)
costSz = 7; // jump to cold section
break;

#ifdef TARGET_ARM64
case GT_CHK_DIV_BY_ZERO:
costEx = 4;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what the costs should be. I just copied from GT_BOUNDS_CHECK from above.

@TIHan TIHan added this to the 8.0.0 milestone Jun 13, 2022
@ghost ghost closed this Jul 13, 2022
@ghost
Copy link

ghost commented Jul 13, 2022

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

@ghost ghost locked as resolved and limited conversation to collaborators Aug 12, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant