RFR: 8318723: RISC-V: C2 UDivL
Andrew Haley
aph at openjdk.org
Thu Oct 26 09:14:31 UTC 2023
On Thu, 26 Oct 2023 06:20:30 GMT, Fei Yang <fyang at openjdk.org> wrote:
> So I tried this on Hifive Unmatched board. Unforunately, JMH test shows some regression for the LongDivMod.testDivideUnsigned `negative` case.
But that case is going to be rare.The larger a number it is, the less common it is. The uniform distribution of this benchmark, in which 0 is as common as 0xb43a61c853a2af20, is grossly unrepresentative of real-world divisors.
In practice, numbers follow some kind of log-normal distribution. Don't fall into the trap of optimizing for a benchmark.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16346#issuecomment-1780720717
More information about the hotspot-dev
mailing list