-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Optimize Vector<>.op_Division with constant divisor #43759
Labels
Comments
Tagging subscribers to this area: @tannergooding, @pgovind, @jeffhandley |
Dotnet-GitSync-Bot
added
the
untriaged
New issue has not been triaged by the area owner
label
Oct 23, 2020
ghost
locked as resolved and limited conversation to collaborators
Dec 6, 2020
tannergooding
removed
the
untriaged
New issue has not been triaged by the area owner
label
Jun 24, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From twitter: https://twitter.com/nietras1/status/1319546076756643842
Current codegen:
Expected codegen:
There are no instructions in x86 to perform a division for vectors of integers, but it makes sense to share the "Magic Division" logic we have for scalars for these Vectors since we expose
operator /
(Users assume it's accelerated just like other Vector APIs)At least for power-of-two numbers.
Bonus points:
operator / scalar
(e.g.operator *
has a scalar overload, division does not)/cc @tannergooding
The text was updated successfully, but these errors were encountered: