-
Notifications
You must be signed in to change notification settings - Fork 396
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
Simplify SupportsConst(I|L)Div to Supports(I|L)MulHigh #7082
Conversation
This is commit is motivated by openj9#17861. A check whether the underlying target supports 64 bit multiplication returning the high word is needed in order to intrinsify java.lang.Math.multiplyHigh As a side effect, this has simplified the SupportsConst(I|L)Div checks as they are transitive to the newly added checks Signed-off-by: James You <james.you@protonmail.com>
Please change the aarch64 code, too. |
See eclipse-omr/omr#7082 Depends on: eclipse-omr/omr#7082 Signed-off-by: James You <james.you@protonmail.com>
Previously, the multiply high feature flag was not enabled for aarch64. This change sets the flag and enables the fast constant division optimization. Signed-off-by: James You <james.you@protonmail.com>
@knn-k The aarch64 code gen did not originally set the |
Is there any reason for not setting the flag for IMulHigh on aarch64? I have the same question for LMulHigh on p.
|
I see no reason that it shouldn't be set. I did not set them because those code gens did not originally set the |
Other reviewers, any comments? |
Jenkins build all,amac |
Jenkins build win |
Jenkins build zlinux |
It didn't notice that I had to perform a coordinated merge with eclipse-openj9/openj9#17892. |
Reopened in #7095 |
This commit is motivated by eclipse-openj9/openj9#17861.
A check whether the underlying target supports 64 bit multiplication returning the high word is needed
in order to intrinsify java.lang.Math.multiplyHigh
As a side effect, this has simplified the
SupportsConst(I|L)Div checks as they are transitive to the newly added checks