-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Tensor primitives divide int32 #111505
Open
alexcovington
wants to merge
27
commits into
dotnet:main
Choose a base branch
from
alexcovington:tensor-primitives-divide-int32
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+193
−20
Open
Tensor primitives divide int32 #111505
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
dfa44fa
Add vectorized path for Int32 type in TensorPrimitives.Divide
37afdd2
Add ISA guards and Debug.Assert
0cc3b79
Simplify vectorizable check, simplify preprocessor guard
b8965ae
Use XPlat intrinsics, use x86 intrinsics just for conversion
d5ebf81
Get Vector128<int> operator/ working
ef596d9
Working for Vector256<int> operator/
1da230f
Works for operator/ where op2 is scalar int
c8b913e
Consolidate to one path
6ac02b3
Move logic from importer to gentree
2bc816b
Add support to vectorize Vector512<int> operator /
77842e4
Working GenTreeSIMDDivByZeroCheck node
16a5178
Make GenTreeSIMDDivByZeroCheck a unary op
1ca404f
Remove empty lower functions, remove leftover gtGetOp2
d9b18a0
JIT formatting
34329ad
Only use low SIMD registers for ptest
65d2f8c
Merge branch 'main' into tensor-primitives-divide-int32
alexcovington 839baa9
Merge branch 'main' into tensor-primitives-divide-int32
alexcovington c6e18e6
Use gtNewSimdCmpOpAnyNode for div-by-zero check
078aff6
Add spill for op1
f994b09
Jit formatting
6767384
Rework to use NI_Vector*_op_Division
e61e97f
Remove GT_SIMD_DIV_BY_ZERO_CHECK and related class/functions
08e0d7c
Re-use tmp reg for converts
66580e1
Comments, jit formatting
3feb91b
Remove leftover SIMDDivByZero
1807a4c
Don't flag with GTF_OVERFLOW since it conflicts with GTF_HW_EM_OP
4929106
Use correct INT_MIN / -1, simplify vec const generation, add assert t…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably assert that we're only encountering it for
varTypeIsInteger(AsHWIntrinsic()->GetSimdBaseType())
, just to avoid issues from potential future refactorings.I'd expect we want to go ahead and include
Vector512_op_Division
here as well, even if it can't be encountered quite yet.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've added the
assert
and includedVector512_op_Division
.