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

Vectorize Vector API intrisics if operands are known #21052

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

gita-omr
Copy link
Contributor

@gita-omr gita-omr commented Feb 1, 2025

  • check if any of operands have known vector type
  • vectorize if such operand is found

- check if any of operands have known vector type
- vectorize if such operand is found
@gita-omr gita-omr added this to the Java 24 (0.50) milestone Feb 1, 2025
- check if any of operands have known vector type
- vectorize if such operand is found
@gita-omr
Copy link
Contributor Author

gita-omr commented Feb 4, 2025

Addressed all comments above.

@knn-k
Copy link
Contributor

knn-k commented Feb 4, 2025

Jenkins test sanity xlinux jdk21

@knn-k
Copy link
Contributor

knn-k commented Feb 4, 2025

@vijaysun-omr Do you have any comments?

@knn-k knn-k self-assigned this Feb 4, 2025
@knn-k knn-k added the comp:jit label Feb 4, 2025
@knn-k knn-k merged commit fac9be5 into eclipse-openj9:master Feb 4, 2025
6 checks passed
@vijaysun-omr
Copy link
Contributor

I will review this in the next couple of days, even though this was merged, and if I have comments, I will share

TR::MethodSymbol * methodSymbol = node->getSymbolReference()->getSymbol()->castToMethodSymbol();
if (isVectorAPIMethod(methodSymbol))
{
if (methodSymbol->getRecognizedMethod() == TR::jdk_internal_vm_vector_VectorSupport_compare)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, is this transformation based on knowledge about the operands also applicable to other vector API methods apart from the compare method for which it seems to be applied here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants