RFR: 8020282: Generated code quality: redundant LEAs in the chained dereferences [v5]

Manuel Hässig mhaessig at openjdk.org
Tue Jun 17 09:37:56 UTC 2025


On Mon, 16 Jun 2025 14:27:37 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:

>> Is this scenario exercised by any of the new tests? If not, would it be possible to construct an additional test where we verify that the peephole is not applied in this case?
>
> This scenario looks like this: 
> ![image](https://github.com/user-attachments/assets/0c012810-c158-46dc-997d-6b5040c16377)
> 
> Test coming soon.

I spoke too soon. I am not able to reduce a test that reliable safepoints right after a lea.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25471#discussion_r2151802824


More information about the hotspot-compiler-dev mailing list