-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8355644: Optimize Math.cbrt for AArch64 platforms with an intrinsic implementation #25085
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back aph! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@theRealAph The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
The reason for the speed difference is worth a remark here. The intrinsic for x86 gets its advantage over the Java code in the JDK by avoiding divide instructions altogether. Apple M silicon can issue a divide instruction every cycle, so this advantage turns into a disadvantage, because the algorithm using division has fewer instructions than this intrinsic. One Arm Neoverse silicon, which does not have super-fast floating-point division, there is an advantage, but it's really only a small one. See the Bug for more details. |
@theRealAph this pull request can not be integrated into git checkout JDK-8355644
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
@theRealAph This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply issue a |
This is the AArch64 version of the cbrt intrinsic. Unfortunately, it doesn't provide much of an advantage over C2-compiled Java, so it's not worth doing.
Progress
Warnings
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25085/head:pull/25085
$ git checkout pull/25085
Update a local copy of the PR:
$ git checkout pull/25085
$ git pull https://git.openjdk.org/jdk.git pull/25085/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25085
View PR using the GUI difftool:
$ git pr show -t 25085
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25085.diff