RFR: 8345485: C2 MergeLoads: merge adjacent array/native memory loads into larger load [v4]

kuaiwei duke at openjdk.org
Tue Mar 18 11:04:09 UTC 2025


On Tue, 18 Mar 2025 09:25:36 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> I'm not clear about it. I think we need replace OrI node here, but return the origin LoadB?
>
> Can you please elaborate? I'm not understanding what you are saying.

For `LoadB` nodes, I will check they have unique usage to `OrI`. If they can be merged, the merged `LoadI` will replace the last `OrI` node, and all `LoadB` and `OrI` nodes will be dead code.
I'm not sure if I can return the merged `LoadI` here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24023#discussion_r2000777557


More information about the hotspot-compiler-dev mailing list