RFR: 8275167: x86 intrinsic for unsignedMultiplyHigh

Andrew Haley aph at openjdk.java.net
Fri Oct 15 16:17:51 UTC 2021


On Wed, 13 Oct 2021 18:55:10 GMT, Vamsi Parasa <duke at openjdk.java.net> wrote:

> Optimize the new Math.unsignedMultiplyHigh using the x86 mul instruction. This change show 1.87X improvement on a micro benchmark.

src/hotspot/share/opto/mulnode.cpp line 468:

> 466: }
> 467: 
> 468: //=============================================================================

MulHiLNode::Value() and UMulHiLNode::Value() seem to be identical. Perhaps some refactoring would be in order, maybe make a common shared routine.

-------------

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


More information about the core-libs-dev mailing list