JDK-8345485 : C2 MergeLoads: merge adjacent array/native memory loads into larger load
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-12-04
  • Updated: 2025-03-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
This is the corresponding optimization to JDK-8318446.

We would be converting:

byte[] a = ...;
int = a[0] + (a[1] << 8) + (a[1] << 16) + (a[1] << 24);

into a single integer load.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24023 Date: 2025-03-13 02:39:16 +0000
13-03-2025

[~kwei] Thanks for the initiative!
26-02-2025

Hi [~epeter], I may work on it. Could you pass it to me?
26-02-2025

If any one is interested in working on this, let me know!
08-02-2025