RFR: 8319451: PhaseIdealLoop::conditional_move is too conservative
Tobias Hartmann
thartmann at openjdk.org
Mon Nov 13 07:51:56 UTC 2023
On Mon, 6 Nov 2023 19:10:42 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
> Hi,
>
> When transforming a Phi into a CMove, the threshold is set to be approximately BlockLayoutMinDiamondPercentage, the reason is given:
>
> // BlockLayoutByFrequency optimization moves infrequent branch
> // from hot path. No point in CMOV'ing in such case
>
> This sets the default value of the threshold to be around 18%, which is too conservative. The reason also does not make a lot of sense since the important property which makes jumping expensive is not code layout. We should remove this.
>
> Please kindly review, thank you very much.
Looks reasonable to me. All tests passed and performance results look neutral (no statistically significant improvements or regressions).
-------------
Marked as reviewed by thartmann (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16524#pullrequestreview-1726686125
More information about the hotspot-compiler-dev
mailing list