Skip to content

Fix array and memory segment access in VectorAPIExpansion #20553

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

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

gita-omr
Copy link
Contributor

@gita-omr gita-omr commented Nov 8, 2024

  • we should not add array header to the address but use base address and offset provided by the intrinsic, whether it's array or segment

Copy link
Contributor

@tajila tajila left a comment

Choose a reason for hiding this comment

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

The approach makes sense to me. @0xdaryl Please review this

@tajila tajila requested a review from 0xdaryl November 13, 2024 22:24
@@ -1267,6 +1267,13 @@ TR_VectorAPIExpansion::generateAddressNode(TR::Compilation *comp, TR::Node *arra
return aladdNode;
}

TR::Node *
TR_VectorAPIExpansion::generateAddressNode(TR::Compilation *comp, TR::Node *base, TR::Node *offset)
Copy link
Contributor

Choose a reason for hiding this comment

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

The compilation object is not used in this function. Does it need to be part of the API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. I will remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@0xdaryl
Copy link
Contributor

0xdaryl commented Nov 14, 2024

Jenkins test sanity all jdk21

@gita-omr
Copy link
Contributor Author

jdk_utik_0 failure on Z seems to be unrelated.

@0xdaryl
Copy link
Contributor

0xdaryl commented Nov 14, 2024

Please squash commits and we can merge.

- we should not add array header to the address but use base
  address and offset provided by the intrinsic, whether it's array or segment
@gita-omr
Copy link
Contributor Author

Squashed. Thanks!

@0xdaryl 0xdaryl merged commit c01c8bc into eclipse-openj9:master Nov 15, 2024
2 checks passed
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