RFR: 8264945: Optimize the code-gen for Math.pow(x, 0.5) [v2]
aph at openjdk.java.net
Wed Apr 21 09:49:26 UTC 2021
On Wed, 21 Apr 2021 09:10:08 GMT, Jie Fu <jiefu 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?
> 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.
More information about the hotspot-compiler-dev