RFR: 8265325: Optimize StubRoutines::dpow() for Math.pow(x, 0.5) [v2]

Jie Fu jiefu at openjdk.java.net
Fri Apr 16 23:10:36 UTC 2021

On Fri, 16 Apr 2021 17:22:32 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> `r1` should be static value to avoid compiling `sqrt()` method as intrinsic.

Hi @vnkozlov ,

Thanks for your review.

Patch has been updated based on your comments.

To be honest, I didn't get why r1 should be static value.
I think both static and non-static should be OK for the test.

So what would happen is sqrt() is intrinsified?
Could you please make it more clearer?

Best regards,


PR: https://git.openjdk.java.net/jdk/pull/3536

More information about the hotspot-compiler-dev mailing list