RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v11]
Emanuel Peter
epeter at openjdk.org
Mon Feb 17 08:40:17 UTC 2025
On Fri, 14 Feb 2025 16:52:17 GMT, Roland Westrelin <roland at openjdk.org> wrote:
> I suppose extracting the branch probability from the MethodData and attaching it to the Min/Max nodes is not impossible.
That is basically what `PhaseIdealLoop::conditional_move` already does, right? It detects the diamond and converts it to `CMove`. We could special case for `min / max`, and then we'd have the probability for the branch, which we could store at the node.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20098#issuecomment-2662409450
More information about the core-libs-dev
mailing list