RFR: 8345485: C2 MergeLoads: merge adjacent array/native memory loads into larger load [v4]
kuaiwei
duke at openjdk.org
Mon Mar 24 08:32:21 UTC 2025
On Tue, 18 Mar 2025 08:55:11 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> src/hotspot/share/opto/memnode.cpp line 1979:
>>
>>> 1977: return l->unique_out();
>>> 1978: } else {
>>> 1979: return (Node*)l;
>>
>> Hmm, I don't like casting away `const`... is there a way to avoid this?
>
> Could the output pointer be `const`?
Yes, it's changed to `const`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24023#discussion_r2009698545
More information about the hotspot-compiler-dev
mailing list