On Mon, 6 Jul 2026 16:12:18 GMT, Daisuke Yamazaki <[email protected]> wrote:

>> When `left == right` is known at code generation time, the operands are 
>> necessarily the same oop, so we can jump directly to `L_oops_equal`. 
>> This patch changes both x86 and aarch65 to do that.
>> 
>> I also considered emitting `equal_result` and returning early in that case.
>> I decided not to do that because `LIR_OpSubstitutabilityCheck::emit_code()` 
>> still appends the slow-path stub after `emit_opSubstitutabilityCheck()` 
>> returns.
>> An early return here would skip binding `op->stub()->continuation()`, 
>> leaving the appended stub with an unbound continuation label. 
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Daisuke Yamazaki has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Clean up the platform-specific codes

Thanks for the update! That looks good to me, too. Let me give this a spin in 
our testing.

Just to let you know: For the mainline pre-integration testing, we are 
temporarily holding off on further integrations. We still need to decide 
whether follow-up changes should go into a separate Valhalla branch or be 
integrated into mainline afterward. We will get back to you later this week 
with further guidance.

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

Marked as reviewed by chagedorn (Committer).

PR Review: 
https://git.openjdk.org/valhalla/pull/2628#pullrequestreview-4642375672

Reply via email to