RFR: 8263006: Add optimization for Max(*)Node and Min(*)Node [v2]

Marcus G K Williams github.com+168222+mgkwill at openjdk.java.net
Fri Apr 23 19:49:31 UTC 2021


On Fri, 23 Apr 2021 09:04:14 GMT, Wang Huang <whuang at openjdk.org> wrote:

> I fix a bug in my code. I am not sure if it is the reason of your crash. However, you can pull the latest code and test again. Thank you.

Your update fixed the error I was seeing. My apologies for not getting back to you yesterday, it turned out to be busier than I projected.

Perf numbers on Haswell Intel Xeon CPU E5-1603 v3 @ 2.80GHz:

Baseline
Benchmark            Mode  Cnt    Score     Error  Units
MyBenchmark.testAdd  avgt    5  149.581 ?  13.626  us/op
MyBenchmark.testMax  avgt    5  223.362 ? 195.007  us/op
MyBenchmark.testMin  avgt    5  206.096 ?  16.840  us/op
MyBenchmark.testMul  avgt    5  149.366 ?   9.558  us/op
Finished running test 'micro:MyBenchmark'


Patch
Benchmark            Mode  Cnt    Score   Error  Units
MyBenchmark.testAdd  avgt    5  109.432 ? 0.010  us/op
MyBenchmark.testMax  avgt    5  109.893 ? 0.072  us/op
MyBenchmark.testMin  avgt    5  109.500 ? 0.024  us/op
MyBenchmark.testMul  avgt    5  111.225 ? 0.013  us/op

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

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


More information about the hotspot-compiler-dev mailing list