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

Manuel Hässig mhaessig at openjdk.org
Mon Jun 16 14:30:33 UTC 2025


On Thu, 12 Jun 2025 12:46:44 GMT, Roberto Castañeda Lozano <rcastanedalo at openjdk.org> wrote:

>> Exactly. This is why I can get away with only checking the usages of the decode.
>
> 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.

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

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


More information about the hotspot-compiler-dev mailing list