RFR: 8264945: Optimize the code-gen for Math.pow(x, 0.5) [v2]
Jie Fu
jiefu at openjdk.java.net
Wed Apr 21 10:14:42 UTC 2021
On Wed, 21 Apr 2021 09:46:18 GMT, Andrew Haley <aph at openjdk.org> wrote:
> > Actually, this optimization has been long used for Java.
> > And we don't see any problems of it, right?
> > So I don't think it will cause problems in the future.
> > What do you think of the same optimization in the HotSpot which has been applied more than 10 years ago?
> > https://github.com/openjdk/jdk/blob/master/src/hotspot/share/runtime/sharedRuntimeTrans.cpp#L499
> > And also the same optimization in the Java lib?
>
> OK, fair enough. I still don't know if this optimization is safe, but I guess (?) the analysis was done at the time. In any case, given that this optimization is already done elsewhere, your patch won't make anything any worse.
Thanks @theRealAph .
And thank you all again.
Much has been learned while discussing with you.
Best regards,
Jie
-------------
PR: https://git.openjdk.java.net/jdk/pull/3404
More information about the hotspot-compiler-dev
mailing list