RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v3]

Andrew Haley aph at openjdk.org
Fri Sep 27 17:44:36 UTC 2024


On Fri, 27 Sep 2024 14:15:04 GMT, Galder Zamarreño <galder at openjdk.org> wrote:

> The only situation where this PR is a regression compared to current code is when the one of the branch side is always taken.

Bear in mind that's quite common. It's not very unusual to clip a range with something equivalent to  `x = min(max(x, lowest), highest)`. What does benchmarking that look like, when all the `x` are within that range?

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

PR Comment: https://git.openjdk.org/jdk/pull/20098#issuecomment-2379768983


More information about the core-libs-dev mailing list