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

AArch64: Stop generating instruction for adding 0 #7308

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

knn-k
Copy link
Contributor

@knn-k knn-k commented Apr 11, 2024

This commit changes addConstant32() and addConstant64() for AArch64 so that they don't generate instructions when the value to be added is 0.

@knn-k
Copy link
Contributor Author

knn-k commented Apr 11, 2024

Jenkins build aarch64,amac

@knn-k
Copy link
Contributor Author

knn-k commented Apr 11, 2024

Jenkins build aarch64,amac

@knn-k
Copy link
Contributor Author

knn-k commented Apr 11, 2024

Jenkins build aarch64,amac

@knn-k
Copy link
Contributor Author

knn-k commented Apr 11, 2024

See #7181 for the failure on x86 macOS.
I also ran OpenJ9 sanity.functional on AArch64 Linux with this change, and the job finished successfully.

@knn-k knn-k marked this pull request as ready for review April 11, 2024 23:46
@knn-k knn-k requested a review from 0xdaryl as a code owner April 11, 2024 23:46
@0xdaryl 0xdaryl self-assigned this Apr 17, 2024
This commit changes addConstant32() and addConstant64() for AArch64 so
that they don't generate instructions when the value to be added is 0.

Signed-off-by: KONNO Kazuhiro <[email protected]>
@knn-k
Copy link
Contributor Author

knn-k commented Apr 18, 2024

Jenkins build aarch64,amac

@knn-k
Copy link
Contributor Author

knn-k commented Apr 18, 2024

Again, the test failure on x86-64 macOS is with TestJitBuilderAPIGenerator. See #7181.

@knn-k
Copy link
Contributor Author

knn-k commented Apr 18, 2024

I changed the return type of these two functions from TR::Instruction * to void.
OpenJ9 builds fine with the change.

@0xdaryl 0xdaryl merged commit 723d2e4 into eclipse-omr:master Apr 18, 2024
6 of 8 checks passed
@knn-k knn-k deleted the aarch64addConst0 branch April 18, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants