On Fri, 14 Feb 2025 16:52:17 GMT, Roland Westrelin <rol...@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

Reply via email to